Difference between revisions of "Modèle:FormatDate"

Line 1: Line 1:
 +
{{#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
 +
}}
 +
<noinclude>
 
{{#switch:{{#len:{{{1|}}}}}
 
{{#switch:{{#len:{{{1|}}}}}
 
|4={{{1}}}/01/06
 
|4={{{1}}}/01/06
Line 5: Line 12:
 
|default=2000/01/01
 
|default=2000/01/01
 
}}
 
}}
 +
</noinclude>

Revision as of 14:13, 22 August 2018