Actions

Template

Difference between revisions of "Year"

From Sonic Retro

(Created page with "<includeonly>{{#iferror:{{#expr:{{#sub:{{{1|9999}}}|0|4}}}}|9999|{{#sub:{{{1|9999}}}|0|4}}}}</includeonly><noinclude> This template converts dates written in the format YYYY-M...")
 
 
Line 2: Line 2:
 
This template converts dates written in the format YYYY-MM-DD to YYYY. If the year is invalid (including unknown years such as 199x), it will return 9999 as the year.
 
This template converts dates written in the format YYYY-MM-DD to YYYY. If the year is invalid (including unknown years such as 199x), it will return 9999 as the year.
  
[[Category:Sonic Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 19:20, 1 January 2022

This template converts dates written in the format YYYY-MM-DD to YYYY. If the year is invalid (including unknown years such as 199x), it will return 9999 as the year.