getMonth

getMonth()

Description

Returns the month of the current model date with respect to the start time/date and the model time unit.

This is a calendar-specific value.

The first month of the year in the Gregorian and Julian calendars is JANUARY which is 0; the last depends on the number of months in a year.

Possible values:

JANUARY
FEBRUARY
MARCH
APRIL
MAY
JUNE
JULY
AUGUST
SEPTEMBER
OCTOBER
NOVEMBER
DECEMBER
UNDECIMBER (indicates the thirteenth month of the year. Although GregorianCalendar does not use this value, lunar calendars do).

Result

Type

Description

int                       

The month of the current model date with respect to the start time/date and the model time unit.