Example usage for java.time YearMonth isValidDay

List of usage examples for java.time YearMonth isValidDay

Introduction

In this page you can find the example usage for java.time YearMonth isValidDay.

Prototype

public boolean isValidDay(int dayOfMonth) 

Source Link

Document

Checks if the day-of-month is valid for this year-month.

Usage

From source file:Main.java

public static void main(String[] args) {
    YearMonth y = YearMonth.now();

    System.out.println(y.isValidDay(12));

}