Answers for "php add 1 hour to date string"

PHP
1

php add hours to current date

$new_time = date("Y-m-d H:i:s", strtotime('+5 hours'));
Posted by: Guest on April-26-2020
1

how to add hour minute seconds in php datetime

date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
Posted by: Guest on August-13-2020

Browse Popular Code Answers by Language