Software : PHP
Tutorial : PHP Displaying the current date
...

Using the date time function in PHP ...

SYNTAX:
echo date("D M d, Y"); /* Prints current date */

NOTES:
You can use different format strings to display the date differently.

RESULT:
Prints current date to page.

Return to the tutorials page.