Enum Month

  • Month is an enum representing the months of the year.

  • To call the enum, you use its parent class, name, and property likeBase.Month.JANUARY.

  • The enum includes properties for all twelve months, from January to December.

Month

An enum representing the months of the year.

To call an enum, you call its parent class, name, and property. For example,Base.Month.JANUARY.

Properties

PropertyTypeDescription
JANUARYEnumJanuary (month 1).
FEBRUARYEnumFebruary (month 2).
MARCHEnumMarch (month 3).
APRILEnumApril (month 4).
MAYEnumMay (month 5).
JUNEEnumJune (month 6).
JULYEnumJuly (month 7).
AUGUSTEnumAugust (month 8).
SEPTEMBEREnumSeptember (month 9).
OCTOBEREnumOctober (month 10).
NOVEMBEREnumNovember (month 11).
DECEMBEREnumDecember (month 12).

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.