Formatting a Date with date()
<html>
<head>
<title>Formatting a Date with date()</title>
</head>
<body>
<div>
<?php
print date("m/d/y G.i:s", time());
print "<br/>";
print "Today is ";
print date("jS of F Y, \a\\t g.i a", time());
?>
</div>
</body>
</html>
Related examples in the same category