Skip to content

getMonth

Returns the calendar month, in the offset stored with the value.

1
myDateTimeOffset.getMonth():number

Returns

An integer from 1 through 12, where 1 is January.

Remarks

Unlike JavaScript Date.getMonth, the first month is 1, not 0.