Fandom Developers Wiki
Advertisement
Fandom Developers Wiki

{{{1}}}

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
Description
Attempt to format the provided date according to the reader's locale format.
Syntax
Type {{FormatDate|<date string>}} somewhere.
Add the uselang parameter with a locale code value to format a date using the provided locale's format.
Add the dateformat parameter with a custom syntax value to format a date according to the provided date format.
Sample output
{{FormatDate|2004-10-18}} gives...
October 18, 2004
{{FormatDate|2004-10-18|uselang=ru}} gives...
18 октября 2004
{{FormatDate|2004-10-18|dateformat=Y F d}} gives...
2004 October 18