Template:Date/doc/en
Jump to navigation
Jump to search
Usage
{{Date/doc}}
is a Template for outputting localized (To the users local time) Date formats.
Syntax
{{Date|date|format}}
Parameters | Description |
---|---|
date
|
The English date to format, eg June 30, 2020 . To properly localize into the users time a time should also be provided, even though that time is not displayed
|
format
|
The format to use. Currently supports: short , long , or 8601 (For ISO-8601 formatting). Defaults to long .
|
Examples
{{Date|January 1, 2024}}
-> January 1, 2024{{Date|January 1, 2024|short}}
-> Jan 1, 2024{{Date|February 2, 2024}}
-> February 2, 2024{{Date|February 2, 2024|short}}
-> Feb 2, 2024{{Date|March 3, 2024}}
-> March 3, 2024{{Date|March 3, 2024|short}}
-> Mar 3, 2024{{Date|April 4, 2024}}
-> April 4, 2024{{Date|April 4, 2024|short}}
-> Apr 4, 2024{{Date|May 5, 2024}}
-> May 5, 2024{{Date|May 5, 2024|short}}
-> May 5, 2024{{Date|June 6, 2024}}
-> June 6, 2024{{Date|June 6, 2024|short}}
-> Jun 6, 2024{{Date|July 7, 2024}}
-> July 7, 2024{{Date|July 7, 2024|short}}
-> Jul 7, 2024{{Date|August 8, 2024}}
-> August 8, 2024{{Date|August 8, 2024|short}}
-> Aug 8, 2024{{Date|September 9, 2024}}
-> September 9, 2024{{Date|September 9, 2024|short}}
-> Sep 9, 2024{{Date|October 10, 2024}}
-> October 10, 2024{{Date|October 10, 2024|short}}
-> Oct 10, 2024{{Date|November 11, 2024}}
-> November 11, 2024{{Date|November 11, 2024|short}}
-> Nov 11, 2024{{Date|December 12, 2024}}
-> December 12, 2024{{Date|December 12, 2024|short}}
-> Dec 12, 2024