colap Posted April 10, 2014 Share Posted April 10, 2014 $objDateTime = new DateTime('NOW'); $created = $objDateTime->format("Y-m-d H:i:s"); From mysql table created = 2014-04-10 15:50:19 I want to add 24 hours or 1 day with this datetime. How can i do this? Quote Link to comment https://forums.phpfreaks.com/topic/287669-how-can-i-add-24-hours-or-1-day-with-datetime/ Share on other sites More sharing options...
boompa Posted April 10, 2014 Share Posted April 10, 2014 http://us3.php.net/manual/en/datetime.add.php Quote Link to comment https://forums.phpfreaks.com/topic/287669-how-can-i-add-24-hours-or-1-day-with-datetime/#findComment-1475654 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.