Return to Snippet

Revision: 48783
at July 9, 2011 00:12 by xavsio4


Initial Code
$date = date("Y-m-d");// current date

$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 = date("Y-m-d",strtotime(date("Y-m-d", strtotime($date)) . " +30 days")) //for mysql input date;

Initial URL


Initial Description


Initial Title
How to add days, weeks, months to any date

Initial Tags


Initial Language
PHP