Actions

Template

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...")
 
 
(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}}}|4|2}}
+
|{{#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:Sonic Retro templates]]</noinclude>
+
[[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.