Difference between revisions of "Modèle:FormatDate"

(Page créée avec « {{#explode:{{{1|01/01/1970}}}|/|2 }}-{{#explode:{{{1|01/01/1970}}}|/|1 }}-{{#explode:{{{1|01/01/1970}}}|/|0 }} »)
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#explode:{{{1|01/01/1970}}}|/|2 }}-{{#explode:{{{1|01/01/1970}}}|/|1 }}-{{#explode:{{{1|01/01/1970}}}|/|0 }}
+
{{#switch:{{#len:{{{1|}}}}}
 +
|4={{{1}}}
 +
|6={{#sub:{{{1}}}|2|4}}-{{#sub:{{{1}}}|0|2}}
 +
|8={{#sub:{{{1}}}|4|4}}-{{#sub:{{{1}}}|2|2}}-{{#sub:{{{1}}}|0|2}}
 +
|default=2100-01-01
 +
}}

Latest revision as of 15:30, 29 August 2018