Template:End date
![]() | This template is used on approximately 91,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{End date}} returns the date (or date and time) that an event or entity ended, in a standard format. It also includes a hidden (by CSS) duplicate, machine-readable date (or date and time) in the ISO date format, for use inside templates or table rows that emit microformats.
Usage
{{End date|YYYY}}
(year only){{End date|YYYY|MM}}
(month and year){{End date|YYYY|MM|DD}}
(year, month, and day){{End date|YYYY|MM|DD|HH|MM|SS|Time zone}}
(date, time, and time zone)
Parameters
- The unnamed parameters, in order, represent the year (four digits), month (one or two digits), day (one or two digits), hour in 24-hour time (one or two digits), minutes (one or two digits), seconds (one or two digits), and the time zone (see below).
- When specifying time of day, MM (minutes), SS (seconds), and the time zone are optional
- Time zone may be a numerical value, or
Z
for UTC (see examples) |df=yes
, an optional parameter, can be set to display the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004"). The order of parameters does not change (it remains YMD). This is primarily used in articles using DMY format for dates.
Examples
{{End date|1993}}
→ 1993{{End date|1993|02}}
→ February 1993{{End date|1993|02|24}}
→ February 24, 1993{{End date|1993|02|24|08|30}}
→ 08:30, February 24, 1993{{End date|1993|02|24|08|7=+01:00}}
→ February 24, 1993 (+01:00){{End date|1993|02|24|08|7=−07:00}}
→ February 24, 1993 (−07:00){{End date|1993|02|24|08|30|23}}
→ 08:30:23, February 24, 1993{{End date|1993|02|24|08|30|23|Z}}
→ 08:30:23, February 24, 1993 (UTC){{End date|1993|02|24|08|30|23|+01:00}}
→ 08:30:23, February 24, 1993 (+01:00){{End date|1993|02|24|08|30|23|−07:00}}
→ 08:30:23, February 24, 1993 (−07:00){{End date|1993|02|24|df=y}}
→ 24 February 1993{{End date|1993|02|24|08|30|df=yes}}
→ 08:30, 24 February 1993
TemplateData
TemplateData for End date
Date that an event or entity ended or was dissolved
Parameter | Description | Type | Status | |
---|---|---|---|---|
YYYY | 1 | End year | Number | required |
MM | 2 | End month | Number | suggested |
DD | 3 | End day of month | Number | suggested |
HH | 4 | End hours | Number | optional |
MM | 5 | End minutes
| Number | optional |
SS | 6 | End seconds
| Number | optional |
TZ | 7 | Time zone offset, "+02:00", "-06:00" or "Z" for UTC | Line | optional |
day first | df | Boolean parameter to put the date before the month name
| Boolean | optional |
Use in microformats
The template returns the date as hCalendar's (class="dtend"
). For example:
<span class="dtend">1993-02-24T08:30</span>
Disable CSS or view source to see the hidden ISO-formatted output.
Note: due to the requirement exclusive dtend
in hCalendar, and the accessibility problems that presents when a date is rendered (as seen without CSS) as 28 March 1999 (1999-03-29)
or even 28 February 1999 (1999-03-01)
or 31 December 1999 (2000-01-01)
, the template should not be used for whole-day dates and should have a time of 24:00:00 or 23:59:59.
See the microformats project for further details.
Example, including hidden machine-readable text
{{End date|2016|12|31}}
→ December 31, 2016December 31, 2016<span style="display:none"> (<span class="dtend itvend">2016-12-31</span>)</span>
Tracking categories
- Category:Pages using end date with invalid values (1,562)
- Category:Pages using end date with unknown parameters (0)
See also
- {{Start date}}
- {{Start and end dates}}
- {{Trim date}}