powered by
Cast a specific month in a specific year as per XMLSchema gYearMonth. Usual lexical representation is: YYYY-MM.
types.castYearmonth(format, value)
no options (other than the default)
list or string with yearmonth to cast
Types and formats specifications
types.castYearmonth(format = "default", value = list(2000, 10)) types.castYearmonth(format = "default", value = "2018-11")
Run the code above in your browser using DataLab