Template:Date/doc

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

based on Module:Date, see https://en.wikipedia.org/wiki/Module:Date/doc

Usage[edit source]

Date and time or both together.

Parameters:

  1. Date - leave blank for today, which moits the year
  2. Formatting

Examples[edit source]

  • {{date||mdy}}

→ April 20


  • {{date|2002-12-31|mdy}}

→ December 31, 2002


  • {{date|{{CURRENTTIMESTAMP}}|mdy}} using magic word CURRENTTIMESTAMP

→ 20 April 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[edit source]

  • {{date||mdy-all}} INVALID values default to dmy

→ 20 April


  • {{date||iso}}

→ April 20

This template replies on modules.

See also[edit source]