跳转到内容

模組:YMD to ISO/doc

维基百科,自由的百科全书

这是Module:YMD to ISO/doc当前版本,由Miljo70留言 | 贡献编辑于2023年10月15日 (日) 00:01 建立内容为“<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> '''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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 Help:Time funct…”的新页面)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

这是Module:YMD to ISO的文档页面


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 }} → 2000-01-17

For more examples, see Template:YMD to ISO.

See also

[编辑]