Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php datetime add one hour

$date = new DateTime('2006-12-12 15:00');
$date->modify('+1 hour');
echo $date->format('Y-m-d');	// 2006-12-12 16:00
 
PREVIOUS NEXT
Tagged: #php #datetime #add #hour
ADD COMMENT
Topic
Name
1+1 =