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 ? Link to comment https://forums.phpfreaks.com/topic/104343-solved-add-i-day-to-certain-date/ 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); Link to comment https://forums.phpfreaks.com/topic/104343-solved-add-i-day-to-certain-date/#findComment-534216 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 . Link to comment https://forums.phpfreaks.com/topic/104343-solved-add-i-day-to-certain-date/#findComment-534224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.