Get date and time : Date Time « Development « PHP

Get date and time

<h1>Hello!</h1> <?

$dat=date("d.m y");


echo "The current date is $dat<br>\n";
echo "The current time is $tm<br>\n";


Related examples in the same category m/d/y G:i:s e
2.Save result of getdate() to an array jS \o\f F Y, \a\\t g:ia \i\\n e
4.Call system date function and get result
5.String time
6.String matches: /p.p/
7. December 16th 2002, 09:17AM.
8.Today's Date