coupe-r Posted October 12, 2010 Share Posted October 12, 2010 Hey guys, What I'm trying to do is set 2 dates. Today's date and then a date 14 days from now. However, I want it to increase the month if by adding 14 days will bring me to the next month, same with the year. I have this, but it doesn't increment the month or year. $week = mktime(11, 59, 59, date("m"), date("d")+14, date("y")); $date = date("Y-m-d H:i:s", $week); Quote Link to comment Share on other sites More sharing options...
coupe-r Posted October 12, 2010 Author Share Posted October 12, 2010 This works echo date('Y-m-d', strtotime('+23 day')); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.