Module:YMD to ISO/doc explained

converts a date in YMD format (e.g. 2000 January 17) to ISO 8601 format (e.g. 2000-01-17). Any input which is not a valid DMY date is passed through unchanged. This template is designed to preprocess dates for use with the

  1. time
parser function, which is unable to convert YMD dates, and for use with templates such as or which are implemented using the #time parser function.

Usage

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}} | main | ''<date in YMD format>'' }}

or via template:

<nowiki>{{</nowiki>{{BASEPAGENAME}} | ''<date in YMD format>'' }}

Examples

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}<nowiki> | main | 2000 January 17 }}</nowiki>

or via template:

<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 2000 January 17 }}</nowiki>

For more examples, see .

See also