Menu
Hi
Assuming I have a specific date in 3 variables:
$day (1-31)
$month (1-12)
and $year (1900-2100)
I would like to know what the date would be one day from now or what it was the day before.
Or what would be the date one month from now and one month before
Or what would be the date one year from now and one year before
Is there a way to get this information using Date/Time PHP functions without resulting to explicit calculations (if I am in February there are 28 days, except…)
For example, if the date is:
$day = 31
$month = 3
$year = 2005
Then one day from now it would be 1/4/2005
regards