List of usage examples for java.time Month getLong
@Override public long getLong(TemporalField field)
From source file:Main.java
public static void main(String[] args) { Month m = Month.from(LocalDate.now()); System.out.println(m.getLong(ChronoField.MONTH_OF_YEAR)); }