LocalDate after YearMonth - Java java.time

Java examples for java.time:YearMonth

Description

LocalDate after YearMonth

Demo Code


//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());
    }
}

Related Tutorials