Template:End date/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Usage[edit source]

This template returns a date, or date-time. It also include the same date (and time) duplicated in a hidden (by CSS) ISO date format, for use in microformats. This hidden date degrades gracefully when CSS is not available.

Syntax[edit source]

{{End date|year|month|day}}

Examples:

  • {{End date|1993|2|24}} returns "February 24, 1993 (1993-02-24)"
  • {{End date|1993|2|24|08|30}} returns "08:30, February 24, 1993 (1993-02-24T08:30)"

An optional parameter, df, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in pages about events in parts of the world where the day precedes the month in a date.

Examples:

  • {{End date|1993|2|24|df=yes}} returns "24 February 1993 (1993-02-24)"

See also[edit source]