Learning PHP and MySQL
Example 11-16 Making the date and time appear like we expect
<?php
$timestamp= time();
echo date("m/d/y G.i:s",$timestamp);
?>
This code returns Figure 11-14.
Posted by on 08/18 at 06:00 PM
Next entry: Example 11-17 Adding two days to the date
Previous entry: Example 11-15 A simple echo of the timestamp