Get date and time : Date Time « Development « PHP






Get date and time


<html><body>
<h1>Hello!</h1> <?

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

$tm=date("h:i:s");


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

?>
</body>
</html>
           
       








Related examples in the same category

1.date: m/d/y G:i:s e
2.Save result of getdate() to an array
3.date: 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