The title of this article should be date(), but due to technical restrictions, cannot contain parenthesis.

Formats date and/or time.

Arguments Edit

{{{returns}}} date (string format [, int tmestamp])
For a full list of the avail format options for date(), please see

Argument Inclusion Edit

(PHP 3, PHP 4, PHP 5)

Examples Edit

Example 1: Edit

echo date("l");

Output Edit


Example 2: Edit

echo date('l dS \of F Y h:i:s A');

Output Edit

Tuesday 12th of September 2006 11:08:46 PM
For more details on this function, visit its entry in the php manual.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.