Template:ISO date/doc

This template converts dates to ISO dates (YYYY-MM-DD or YYYY-MM or YYYY as appropriate), see below for restrictions on input formats accepted.

Usage
The template may be used without any parameters, in which case it displays the current date: If no year has been specified, it displays the current year


 * returns


 * returns

The template accepts one unnamed parameter containing a date in one of the following formats:


 * returns
 * returns
 * returns


 * returns
 * returns
 * returns
 * returns


 * returns
 * returns


 * returns

Formats for which it can not work because #time returns an error or an incorrect ISO format:


 * returns (hyphens indicate DD-MM-YYYY and 15 is an invalid month number)
 * returns (slashes indicate MM/DD/YYYY and 15 is an invalid month number)
 * returns
 * returns
 * returns (expected: )