Return to Snippet

Revision: 57652
at June 4, 2012 05:32 by pruntrut


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

Initial URL
http://www.vision.to/how-to-add-days-weeks-months-to-any-date-.php

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

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

Initial Tags

                                

Initial Language
PHP