Actions

Template

Difference between revisions of "Year"

From NEC 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...")
 
m (Text replacement - "Category:NEC Retro templates" to "Category:Templates")
 
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:NEC Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 13:02, 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.