Pages

PHP Display date and time now according to your country (Server time change)

<?php 
       
date_default_timezone_set('Asia/Colombo'); //your country region

http://php.net/manual/en/timezones.php

$timenow = date('H:i:s', time());

$datenow = date('Y-m-d');

?>

No comments:

Post a Comment

Search This Blog