PHP date arithmetic
I need to be able to determine an expiration date as being today plus a given subscription term. Given that:
$curdate=date("Ymd");
$term=365;
Why does the following not work? And what would?
$expdate= date($curdate, mktime(0, 0, 0, date("m"), date("d")+$term, date("y")));
|