DateTime.getMonth

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

Return: the month represented by @datetime

class DateTime
int
getMonth
()

Meta

Since

2.26