Example usage for java.time MonthDay getDayOfMonth

List of usage examples for java.time MonthDay getDayOfMonth

Introduction

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

Prototype

public int getDayOfMonth() 

Source Link

Document

Gets the day-of-month field.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    int n = m.getDayOfMonth();
    System.out.println(n);/*from  w  w w  .j  av  a  2 s  . c o  m*/

}