Skip to content

getMonth

Returns the month in the specified date, according to local time.

1
myDateTimeOffset.getMonth():number

Returns

An integer representing the month (0-11), where 0 is January.

See Also

  • https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMonth