Java examples for java.time:YearMonth
LocalDate after YearMonth
//package com.java2s; import java.time.LocalDate; import java.time.YearMonth; public class Main { private static boolean stillInCalendar(YearMonth yearMonth, LocalDate day) {//from w w w. ja v a 2 s .c o m return !day.isAfter(yearMonth.atEndOfMonth()); } }