Template:Get year

From MattWiki
Jump to: navigation, search

1900

Documentation icon Template documentation[view] [edit] [history] [purge]
Purpose  
Given a plain text date, returns the year. Accepts ISO8601, a variety of date formats as well as a year-only date specification.
Limitations 
Does [not?] understand BC / AD and may not deliver accurate results for single-digit dates.