Difference between revisions of "Modèle:FormatDate"

Line 1: Line 1:
{{#switch:{{#len:{{{1|}}} }}
+
{{#switch:{{#len:{{{1|}}}}}
|4={{{1}}}-06-01
+
|4={{{1}}}-06-01
|7={{#explode:{{{1}}}|/|1}}-{{#explode:{{{1}}}|/|0}}-01
+
|7={{#sub:{{{1}}}|2|4}}-{{#sub:{{{1}}}|0|2}}-01
|10={{#explode:{{{1}}}|/|2}}-{{#explode:{{{1}}}|/|1}}-{{#explode:{{{1}}}|/|0}}
+
|10={{#sub:{{{1}}}|5|4}}-{{#sub:{{{1}}}|2|2}}-{{#sub:{{{1}}}|5|2}}
 
|default=2000-01-01
 
|default=2000-01-01
 
}}
 
}}

Revision as of 14:35, 2 July 2018