DateTime.getMonth

int getMonth()

Retrieves the month of the year represented by datetime in the Gregorian calendar.

Returns

the month represented by datetime