How to add One Hour in Current Date and Time using PHP

0

The following is really easy way to add one hour in current date and time using PHP. Using the date function to set the format of the date to be returned then using strtotime. You may also like How to add one month in current date using php and How to add one day in current date using php.

PHP Code

<?php
    $start = date('Y-m-d H:i:s');
    echo date('Y-m-d H:i:s',strtotime('+1 hour',strtotime($start)));
?>