Here is some quick PHP code to add a month to the current date:
$next_month = mktime(0, 0, 0, date("m")+1, date("d"), date("y"));
$outDate = date("Y-m-d", $next_month);
For more on the mktime() function: http://php.net/manual/en/function.mktime.php
For more on the date() format function: http://php.net/manual/en/function.date.php
No comments:
Post a Comment