LocalDateTime.getMonth

Gets the month-of-year field using the {@code Month} enum. !(p) This method returns the enum {@link Month} for the month. This avoids confusion as to what {@code int} values mean. If you need access to the primitive {@code int} value then the enum provides the {@link Month#getValue() int value}.

@return the month-of-year, not null @see #getMonthValue()

class LocalDateTime
nothrow
getMonth
()

Meta