Get date and time : Date Time « Development « PHP
- PHP
- Development
- Date Time
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