Formatting a Date with date() : date function « Development « PHP






Formatting a Date with date()




<html>
<head>
<title>Formatting a date with date()</title>
</head>
<body>
<?php
print date("m/d/y G.i:s<br>", time());
print "Today is ";
print date("j of F Y, \a\\t g.i a", time());
?>
 </body>
</html>


           
       








Related examples in the same category

1.Format Codes for Use with date()