PHP Calculating future date by adding days to a variable date
Posted
by OneNerd
on Stack Overflow
See other posts from Stack Overflow
or by OneNerd
Published on 2010-04-22T16:30:59Z
Indexed on
2010/04/22
16:33 UTC
Read the original article
Hit count: 365
I was looking at this post, and it is close to what I need: http://stackoverflow.com/questions/1669165/php-how-to-count-60-days-from-the-add-date
However, in that post, the calculation is performed by adding 60 days to the current date. What I need to do is calculate the date based on a variable date (and not the current date).
Something like this:
$my_date = $some_row_from_a_database;
$date_plus_10_days = ???;
Anyone know how to do that?
Thanks
© Stack Overflow or respective owner