php date() function
Posted: Mon Aug 02, 2010 8:48 am
Hi all,
This is the code that displays current date and time according to the GMT time.
How can i convert it to the local date and time?
Thanks,
This is the code that displays current date and time according to the GMT time.
How can i convert it to the local date and time?
Code: Select all
<?php
$today = date("d M Y h:i A");
echo $today
?>
Thanks,