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>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.