<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Module%3AYMD_to_ISO%2Fdoc</id>
	<title>Module:YMD to ISO/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://attuproject.org/wiki?action=history&amp;feed=atom&amp;title=Module%3AYMD_to_ISO%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:YMD_to_ISO/doc&amp;action=history"/>
	<updated>2026-10-03T06:49:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://attuproject.org/wiki?title=Module:YMD_to_ISO/doc&amp;diff=5361&amp;oldid=prev</id>
		<title>Dervot: Created page with &quot;&lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --&gt;  &#039;&#039;&#039;{{NAMESPACE}}:{{BASEPAGENAME}}&#039;&#039;&#039; 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...&quot;</title>
		<link rel="alternate" type="text/html" href="https://attuproject.org/wiki?title=Module:YMD_to_ISO/doc&amp;diff=5361&amp;oldid=prev"/>
		<updated>2023-12-24T05:15:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;  &amp;#039;&amp;#039;&amp;#039;{{NAMESPACE}}:{{BASEPAGENAME}}&amp;#039;&amp;#039;&amp;#039; converts a date in &lt;a href=&quot;/wiki?title=Calendar_date&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Calendar date (page does not exist)&quot;&gt;YMD&lt;/a&gt; format (e.g. 2000 January 17) to &lt;a href=&quot;/wiki?title=ISO_8601&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ISO 8601 (page does not exist)&quot;&gt;ISO 8601&lt;/a&gt; format (e.g. 2000-01-17). Any input which is not a valid DMY date is passed through unchanged. This template is designed to &lt;a href=&quot;https://en.wiktionary.org/wiki/preprocess&quot; class=&quot;extiw&quot; title=&quot;wikt:preprocess&quot;&gt;preprocess&lt;/a&gt; dates for use with the &lt;a href=&quot;/wiki?title=Help:Time_function&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Time function (page does not exist)&quot;&gt;#time&lt;/a&gt; parser function...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;{{NAMESPACE}}:{{BASEPAGENAME}}&amp;#039;&amp;#039;&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}} | main | &amp;#039;&amp;#039;&amp;lt;date in YMD format&amp;gt;&amp;#039;&amp;#039; }}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or via template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;{{BASEPAGENAME}} | &amp;#039;&amp;#039;&amp;lt;date in YMD format&amp;gt;&amp;#039;&amp;#039; }}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}&amp;lt;nowiki&amp;gt; | main | 2000 January 17 }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:{{BASEPAGENAME}} | main | 2000 January 17 }}&lt;br /&gt;
&lt;br /&gt;
or via template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;{{BASEPAGENAME}}&amp;lt;nowiki&amp;gt; | 2000 January 17 }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{{{BASEPAGENAME}} | 2000 January 17 }}&lt;br /&gt;
&lt;br /&gt;
For more examples, see [[Template:YMD to ISO]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:YMD to ISO/testcases]]&lt;br /&gt;
* [[Help:Time function]]&lt;br /&gt;
* {{Section link|mw:Help:Extension:ParserFunctions|#time}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dervot</name></author>
	</entry>
</feed>