How to use PHP Date functions in my PHP program?
PHP Date functions is very handy. It is used to progracess, format and create date objects in PHP.
There are many ways to use PHP Date functions.
Following code shows current date:
<? $today = date("F j, Y, g:i a"); ?> Today is: <?=$today?>
The current date can be displayed using the single line of code below. This will only work on pages where PHP is enabled. This means that it will display a date on pages that end in .php or other extensions setup on your server to run PHP.
print(Date("l F d, Y"));