Example usage for java.time MonthDay get

List of usage examples for java.time MonthDay get

Introduction

In this page you can find the example usage for java.time MonthDay get.

Prototype

@Override 
public int get(TemporalField field) 

Source Link

Document

Gets the value of the specified field from this month-day as an int .

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    long n = m.get(ChronoField.MONTH_OF_YEAR);
    System.out.println(n);// www  .jav a 2s  .c om

}