Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:YMD to ISO/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> '''{{NAMESPACE}}:{{BASEPAGENAME}}''' converts a date in [[Calendar date#Gregorian, year-month-day (YMD)|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 [[wikt:preprocess|preprocess]] dates for use with the [[Help:Time function|#time]] parser function, which is unable to convert YMD dates, and for use with templates such as {{tl|Date}} or {{tl|ISO date}} which are implemented using the #time parser function. == Usage == <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}} | main | ''<date in YMD format>'' }}</code> or via template: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''<date in YMD format>'' }}</code> == Examples == <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}<nowiki> | main | 2000 January 17 }}</nowiki></code> β {{#invoke:{{BASEPAGENAME}} | main | 2000 January 17 }} or via template: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | 2000 January 17 }}</nowiki></code> β {{{{BASEPAGENAME}} | 2000 January 17 }} For more examples, see [[Template:YMD to ISO]]. == See also == * [[Module:YMD to ISO/testcases]] * [[Help:Time function]] * {{Section link|mw:Help:Extension:ParserFunctions|#time}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Section link
(
edit
)
Template:Tl
(
edit
)
Template:YMD to ISO
(
edit
)
Module:YMD to ISO
(
edit
)