Please send questions to st10@humboldt.edu .
<html>

<!-- datetime2.php
     
     adapted from example from Chapter 9 of "Learning PHP 5", by
         David Sklar, published by O'Reilly
     adapted by: Sharon Tuttle
     last modified: 11-28-06
-->

<head>
    <title> playing with PHP date and time handling - 2 </title>
</head>

<body>
    <h2> playing with PHP date and time handling - 2 </h2>    

    <?php
        // m - month (as a number)
        // d - day of the month
        // y - last two digits of year

        print "<h3> ";

        print "date('m/d/y') says:  ";
        print date('m/d/y');

        // playing with some others...

        print "<br>";
        print date('l F d, Y') . " at " . date('g:i a');

        print "<br><br>\n";

        // %m - month (as a number)
        // %d - day of the month
        // %y - last two digits of year

        print "strftime('%m/%d/%y') says:  ";
        print strftime('%m/%d/%y');

        // playing with some others...

        print "<br>";
        print strftime('in the %C century, on %A, %B %d, %Y, at %r');

        print " </h3>\n";

    ?> 

</body>
</head>