Here you can find the source of isBetween(LocalDate date, LocalDate before, LocalDate after)
public static Boolean isBetween(LocalDate date, LocalDate before, LocalDate after)
//package com.java2s; //License from project: Creative Commons License import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; public class Main { public static Boolean isBetween(LocalDate date, LocalDate before, LocalDate after) { return date.isAfter(before) && date.isBefore(after); }/*w w w .ja va 2 s .c om*/ public static Boolean isBetween(LocalDateTime date, LocalDateTime before, LocalDateTime after) { return date.isAfter(before) && date.isBefore(after); } public static Boolean isBetween(LocalDateTime date, LocalDate before, LocalDate after) { return date.isAfter(before.atStartOfDay()) && date.isBefore(after.atTime(LocalTime.MAX)); } public static Boolean isBetween(LocalDate date, LocalDateTime before, LocalDateTime after) { return date.isAfter(before.toLocalDate()) && date.isBefore(after.toLocalDate()); } }