porta325 Posted May 6, 2008 Share Posted May 6, 2008 Hey guys, i wanna add one day to ...let's say 2007-01-01; All i found was adding one day to the date we're in. Anyone any ideea ? Quote Link to comment Share on other sites More sharing options...
xenophobia Posted May 6, 2008 Share Posted May 6, 2008 using the strtotime like this: strtotime("+1 day", strtotime("2007-01-01")); make sure the second parameter is the Unix-timestamp which are in seconds. You can try out the output like this: $a = strtotime("+1 day", strtotime("2007-01-01")); echo date('d M Y', $a); Quote Link to comment Share on other sites More sharing options...
porta325 Posted May 6, 2008 Author Share Posted May 6, 2008 Thx alot, it works, you are great . 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.