Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php add hours to current date
Ahmed Hesham Hesham
Programming language:
PHP
2021-07-04 05:22:32
0
Q:
php add hours to current date
Manoj Bharti
Code:
PHP
2021-05-24 20:56:41
$new_time = date("Y-m-d H:i:s", strtotime('+5 hours'));
0
Tags
php
add
date
hour
hours
Related
add 7 days to date php
add seconds to datetime php
how to add hour minute seconds in php datetime
Add 2 hours to current time in cakephp
add hour minute in datetime in php
seconds to days hours minutes seconds php
convert am pm time to 24 hour in php
how to add extra days from a date php
php date + 30 days
php time difference in hours
php date plus days
php start of day epoch
php date strtotime add days
php get start and end date of month and year
add 1 day php datetime
php date to seconds
php datetime add 1 weeek
New to Communities?
Join the community