Difference between revisions of "Modèle:FormatDate"

Line 1: Line 1:
 
{{#switch:{{#len:{{{1|}}} }}
 
{{#switch:{{#len:{{{1|}}} }}
|4={{#explode:{{{1}}}|/|2 }}-01-01   
+
|4={{{1}}}-01-01   
|6={{#explode:{{{1}}}|/|2 }}-{{#explode:{{{1}}}|/|1 }}-01
+
|6={{#explode:{{{1}}}|/|1 }}-{{#explode:{{{1}}}|/|0 }}-01
 
|8={{#explode:{{{1}}}|/|2 }}-{{#explode:{{{1}}}|/|1 }}-{{#explode:{{{1}}}|/|0 }}
 
|8={{#explode:{{{1}}}|/|2 }}-{{#explode:{{{1}}}|/|1 }}-{{#explode:{{{1}}}|/|0 }}
 
|default=2000-01-01
 
|default=2000-01-01
 
}}
 
}}

Revision as of 09:44, 2 July 2018