Template:Date

Syntax
This template takes up to two parameters, both of which are optional:

  |  

For example,   produces.
 *   is an (optional) date to be formatted.
 * If no date is specified, the template emits the current date.
 * If a date is provided, but is not recognized as one, the text is just returned as is. Most dates will however be recognized as such, including all the formats typically used on Wikipedia. Numerous variations thereof are also supported, including abbreviated or lower case month names; genitive 'st', 'nd', 'rd', 'th'; extraneous white space; missing comma etc.
 * Notes:
 * Only dates within the range January 1, 1000 and December 31, 9999 are supported. Dates with two digit dates will have unexpected results. Other dates outside the range 1000–9999 will be treated as if the second parameter were "none".


 *   controls the date format in which the result is to be emitted.
 * If no style is specified, the template emits a date in 'd month yyyy' format, as it appears (for example) on discussion pages.
 * Recognized values for the second parameter are:
 * none applies no formatting whatsoever
 * dmy gives d mmmm yyyy (eg dmy). This is the default format.
 * mdy gives mmmm d, yyyy (eg mdy)
 * ymd gives yyyy mmmm dd (eg ymd)
 * iso gives an ISO 8601 yyyy-mm-dd (eg iso)
 * Prefixing these parameters with "l" (l for l</tt>ink) produces a linked date:
 * ldmy</tt> gives  d mmmm yyyy  (eg ldmy)
 * lmdy</tt> gives  mmmm d, yyyy  (eg lmdy)
 * lymd</tt> gives  yyyy mmmm dd  (eg lymd)
 * liso</tt> gives  yyyy-mm-dd  (eg liso)
 * Notes:
 * Although these are the four formats supported by MediaWiki's date autoformatting mechanism, only /  and  /  are in accordance with the English language Wikipedia's Manual of Style. The use of  /  (ISO 8601) format within article prose is expressly discouraged by the Manual of Style; this format should only be used in tables or lists.
 * In each case, the result is exactly the same as what would be emitted by MediaWiki's date autoformatting mechanism. However, dates are not manipulated by MediaWiki's date autoformatting mechanism even when linked. This permits dates to have a consistent appearance regardless of whether they are linked or not.