Hello friends.
The follwing code displays the date on my webpage :
echo date (l dS of F Y h:i:s A);
However, I need to add 12 hrs to this date befor displaying on the webpage. Can
someone please help me to modify the above code?
Thanks
Denis
Hi,
Monday, February 3, 2003, 11:10:36 AM, you wrote:
DLM Hello friends.
DLM The follwing code displays the date on my webpage :
DLM echo date (l dS of F Y h:i:s A);
DLM However, I need to add 12 hrs to this date befor displaying on the webpage. Can
someone please help me to modify the above
echo date (l dS of F Y h:i:s A);
However, I need to add 12 hrs to this date befor displaying on the
webpage. Can someone please help me to modify the above code?
$t = time() + (12 * 60 * 60);
echo date (l dS of F Y h:i:s A, $t);
Larry
--
PHP General Mailing List (http://www.php.net/)
To
3 matches
Mail list logo