Difference between revisions of "Template:ISO date/doc"
Jump to navigation
Jump to search
imported>Trödel (→Usage: this now handles all the dates that the one in the history covered) |
imported>Pigsonthewing (→See also: 3x) |
||
| Line 29: | Line 29: | ||
== See also == | == See also == | ||
| + | |||
| + | *{{Tl|Birth date}} | ||
| + | *{{Tl|Birth date and age}} | ||
| + | *{{Tl|Start date}} | ||
<includeonly> | <includeonly> | ||
Revision as of 22:41, 11 November 2008
| This is a documentation subpage for Template:ISO date. It contains usage information, categories and other content that is not part of the original template page. |
This template converts dates to YYYY-MM-DD or YYYY-MM or YYYY as appropriate - see below for restrictions on input formats accepted.
Usage
This template only converts dates formated in one of the formats below to an ISO date
The template accepts one parameter - which must be unnamed. For example:
- {{ISO date|15 January 2001}} returns 2001-01-15
- {{ISO date|March 2003}} returns 2003-03
The date parameter must be in one of the following formats:
- 15 January 2001
- 15 Jan 2001
- January 15, 2001
- Jan 15, 2001
- 15-01-2001
- January 2001
- Jan 2001
- 2001
Formats for which it can not work because #time returns an error:
- 01-15-2001
- 1/2001
Use in microformats
This template also wraps the date in the classes needed by hAtom (class="updated"), hCalendar (class="dtstart") and hCard (class="bday") microformats - usually, but not always, within infobox or similar templates, or tables.
See also
- {{Birth date}}
- {{Birth date and age}}
- {{Start date}}