Template:Get year/doc

From MattWiki
Jump to: navigation, search
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.