Add the current date on a web page
Using PHP, you can add the current date to your webpage. Add the following line of PHP code to your web page in the place where you wish the current date to be displayed.
<?=date('F d, Y',time())?>
The above will display the date in the format of “month day, year”. The month is displayed in words and the day and year in numbers.
The date function is in the format of date(string format [, int timestamp] ), where the string format determines they way the date is formatted, eg July 12, 2005 or 7/12/05. The parameter “int timestamp” or integer timestamp is optional, you can leave the timestamp blank and the current local time will be used, that is, time().
See the PHP manual on date function for more information on the date function and for a list of the format characters.

