[Solved] Date between other Dates java.time [duplicate]


The LocalDate class has

isAfter(LocalDate other)    
isBefore(LocalDate other)   
isEqual(LocalDate other)    

methods for comparisons with other dates. Here is an example:

    LocalDate today = LocalDate.now();
    LocalDate tomorrow = LocalDate.now().plusDays(1);
    LocalDate yesterday = LocalDate.now().minusDays(1);

    if(today.isAfter(yesterday) && today.isBefore(tomorrow))
        System.out.println("Today is... today!");

solved Date between other Dates java.time [duplicate]