Add 1 day to Datetime?
Posted: Wed Aug 04, 2010 1:53 am
I have a DateTime variable, which I display in this format:
"Y-m-d H:i"
I would like to add 1 day to the variable. I can't just do +1 as there are a limited number of days in a month (e.g. never 32)! It would have to go to the next month when neccessary.
Any ideas?
"Y-m-d H:i"
I would like to add 1 day to the variable. I can't just do +1 as there are a limited number of days in a month (e.g. never 32)! It would have to go to the next month when neccessary.
Any ideas?