krappleby025
Programmer
Hi all.
Please see below,
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+3 month', strtotime($DateNextPayment)));
I am using this line on one of my sites, and have changed the way the time is set.. Now it is possible to increase the time by any number of months..
at the moment the above is set at +3 monhts, I need to do it so that i can set any period..
for instance, i have tried
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+$Number_months month', strtotime($DateNextPayment)));
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+" . $Number_months . " month', strtotime($DateNextPayment)));
and many other variables, but none seem to work
Please see below,
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+3 month', strtotime($DateNextPayment)));
I am using this line on one of my sites, and have changed the way the time is set.. Now it is possible to increase the time by any number of months..
at the moment the above is set at +3 monhts, I need to do it so that i can set any period..
for instance, i have tried
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+$Number_months month', strtotime($DateNextPayment)));
$nextpaydue2 = date('Y-m-d h:i:s', strtotime('+" . $Number_months . " month', strtotime($DateNextPayment)));
and many other variables, but none seem to work