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? 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 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
Archived
This topic is now archived and is closed to further replies.