List of usage examples for java.time MonthDay getLong
@Override public long getLong(TemporalField field)
From source file:Main.java
public static void main(String[] args) { MonthDay m = MonthDay.now(); long n = m.getLong(ChronoField.MONTH_OF_YEAR); System.out.println(n);/*from www . j a va 2 s. c o m*/ }