Tuesday, 15 November 2011

Get current date and time of india according to timezone

$dateTime = new DateTime("now", new DateTimeZone('Asia/Calcutta'));
echo $dateTime->format("Y-m-d H:i:s");

No comments:

Post a Comment