php add 3 hours to current time code example Example: php add hours to current date $new_time = date("Y-m-d H:i:s", strtotime('+5 hours'));