Template:Get year/doc
Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Purpose
badloGiven a plain text date, returns the year. Accepts ISO 8601, a variety of date formats as well as a year-only date specification.
Limitations
badloDoes [not?] understand BC / AD and may not deliver accurate results for single-digit dates.
Examples
badlo{{Get year}}
1900{{Get year|}}
2024{{Get year|1946}}
1946{{Get year|July 3, 1965}}
1965{{Get year|16 November 1971}}
1971{{Get year|1975-12-19}}
1975{{Get year|3-7-2005}}
Error: Time invalid hai.{{Get year|3/27/2015}}
Error: Time invalid hai.{{Get year|1997 January 8}}
Error: Time invalid hai.