This topic is locked
[SOLVED]

 how to declare the variable on the event computing date

5/13/2015 4:59:38 AM
PHPRunner General questions
F
fsgonzales author

Sir,
This syntax work well found in other posts.

$date_scheduled = $values["Issued"];

$Interval = $values["Duration"];
$newdate = strtotime ( '+3 months' , strtotime ( $date_scheduled ) ) ;

$newdate = date ( 'Y-m-j' , $newdate );
$values["Expiry"] = $newdate;


My question is how can I make Variable $Interval replace '+3 months' or is there any work around?
I already saw the answer.

$newdate = date("Y-m-d", strtotime($values["Issued"]." + ".$values["Duration"]. " months"));

$values["Expiry"] = $newdate;


Brgds
Fred G.