List of usage examples for java.time YearMonth isValidDay
public boolean isValidDay(int dayOfMonth)
Source Link
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.isValidDay(12)); }