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 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 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.