Difference between revisions of "Month"
From Sonic Retro
(Created page with "<includeonly>{{#ifeq:{{#pos:{{{1|}}}|-}}|4 |{{#sub:{{{1}}}|4|2}} |00 }}</includeonly><noinclude> This template converts dates written in the format YYYY-MM-DD to MM. If the da...") |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{#pos:{{{1|}}}|-}}|4 | <includeonly>{{#ifeq:{{#pos:{{{1|}}}|-}}|4 | ||
− | |{{#sub:{{{1}}}| | + | |{{#sub:{{{1}}}|5|2}} |
|00 | |00 | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
This template converts dates written in the format YYYY-MM-DD to MM. If the date is invalid or contains no month, it will return 00 as the month. | This template converts dates written in the format YYYY-MM-DD to MM. If the date is invalid or contains no month, it will return 00 as the month. | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:17, 1 January 2022
This template converts dates written in the format YYYY-MM-DD to MM. If the date is invalid or contains no month, it will return 00 as the month.