joeymarchy on 01/06/09
Last Edited at 01/06/09 11:52am
$date = date("Y-m-d");$date = strtotime(date("Y-m-d", strtotime($date)) . " +12 month");$date = date("Y-m-d",$date);echo $date; Other examples$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 day");$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 week");$date = strtotime(date("Y-m-d", strtotime($date)) . " +2 week");$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 month");$date = strtotime(date("Y-m-d", strtotime($date)) . " +30 days");
Report this snippet Tweet
Comment:
You need to login to post a comment.