Difference between revisions of "Module:YMD to ISO/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw (create) |
blackwiki>Zyxw (update) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Documentation subpage}} |
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
Revision as of 14:21, 2 January 2017
| 40px | This is a documentation subpage for Module:YMD to ISO. It contains usage information, categories and other content that is not part of the original module page. |
Module:YMD to ISO 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 #time parser function, which is unable to convert YMD dates, and for use with templates such as {{Date}} or {{ISO date}} which are implemented using the #time parser function.
Usage
{{#invoke:YMD to ISO | main | <date in YMD format> }}
or via template:
{{YMD to ISO | <date in YMD format> }}
Examples
{{#invoke:YMD to ISO | main | 2000 January 17 }} → 2000-01-17
or via template:
{{YMD to ISO | 2000 January 17 }} → Template:YMD to ISO
For more examples, see Template:YMD to ISO.
See also
- Module:YMD to ISO/testcases
- Help:Time function
- Script error: No such module "Section link".