Php Programming Code Examples
Php > Code Snippets Code Examples
Create a date with mktime
Create a date with mktime
<?php
$timestamp = mktime(11, 15, 0, 7, 23, 2004);
print date("m/d/y G.i:s<br>", $timestamp);
print "<br>";
print "The date is ";
print date("j of F Y, \a\\t g.i a", $timestamp);
?>