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.