powered by
Cast year. A calendar year as per XMLSchema gYear. Usual lexical representation is: YYYY.
types.castYear(format, value)
no options (other than the default)
year to cast
Types and formats specifications
types.castYear(format = "default", value = 2000) types.castYear(format = "default", value = "2010")
Run the code above in your browser using DataLab