Here you can find the source of isActual(LocalDate before, LocalDate after)
public static Boolean isActual(LocalDate before, LocalDate after)
//package com.java2s; //License from project: Creative Commons License import java.time.LocalDate; import java.time.LocalDateTime; public class Main { public static Boolean isActual(LocalDate before, LocalDate after) { LocalDate date = LocalDate.now(); return date.isAfter(before) && date.isBefore(after); }//from w w w.j a v a 2s . co m public static Boolean isActual(LocalDateTime before, LocalDateTime after) { LocalDateTime date = LocalDateTime.now(); return date.isAfter(before) && date.isBefore(after); } }