Documentation Template documentation
(for the Date template, sometimes hidden or invisible)
[edit]   —   [history]   —   [purge]   —   [what links here]

Usage

{{DateYYYYMMDD }}


YYYY
The four digit year (Required)
MM
The two digit month (Required)
DD
The two digit day of the month (Required)

Date formatting

Dates have to be formatted year, month, date; zero-padded, no punctuation. If you did it right, you should have a total of eight digits. The New Year's Day 2007 (Gregorian Calendar) would be formatted as 20070101, for example.

Comparison and understanding

Today is Thursday, February 25, 2021.
In digits, this would either be 02/25/2021 (USA) or 25/02/2021 (majority of the world).
Formatted correctly for the template, it would be 20210225.

Examples

Date format = YYYY (4 digit Year) MM (2 digit Month) DD (2 digit Day)


{{Date19700304 }} produces March 4, 1970

{{Date20100101 }} produces January 1, 2010

{{Date20251225 }} produces December 25, 2025


Visit Template:Date/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.