Template:Date
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
16 May 2024
- Documentation for this template can be found on Wikipedia:Template:Date/doc
based on Module:Date, see https://en.wikipedia.org/wiki/Module:Date/doc
Usage
Date and time or both together.
Parameters:
- Date - leave blank for today, which moits the year
- Formatting
Examples
{{date||mdy}}
→ May 16
{{date|2002-12-31|mdy}}
→ December 31, 2002
{{date|{{CURRENTTIMESTAMP}}|mdy}}
using magic word CURRENTTIMESTAMP
→ 16 May 2024
{{date|2002-12-31|mdy}}
→ December 31, 2002
- not working!
{{date|2002-12|mdy}}
Year and month only yyyy-mm add in some automatically generated references
→ December 1, 2002
With errors
{{date||mdy-all}}
INVALID values default to dmy
→ 16 May
{{date||iso}}
→ May 16
This template replies on modules.
See also
- {{DateI18n}} - newer date conversions using Module:DateI18n
The above documentation is transcluded from Template:Date/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |