Answers for "get 2 hrs before data in php"

PHP
0

get 2 hrs before data in php

//set timezone
date_default_timezone_set('Asia/Kolkata');

//set an date and time to work with
$start = '2014-06-01 14:00:00';
echo date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
Posted by: Guest on March-19-2021

Code answers related to "get 2 hrs before data in php"

Browse Popular Code Answers by Language