Java LocalDate Calculate isActual(LocalDate before, LocalDate after)

Here you can find the source of isActual(LocalDate before, LocalDate after)

Description

is Actual

License

Creative Commons License

Declaration

public static Boolean isActual(LocalDate before, LocalDate after) 

Method Source Code

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

Related

  1. getQuarterBounds(final LocalDate date)
  2. getTimeDifferenceInDays(LocalDate to)
  3. getTodayAsLocalDate()
  4. getWeekOfTheYear(final LocalDate dateOfYear)
  5. getYearMonth(LocalDate localDate)
  6. isAnyLocalDate(Object obj)
  7. isBankHoliday(List bankHolidays, LocalDate date)
  8. isDayOfWeek(LocalDate d, DayOfWeek dow)
  9. isEqual(LocalDate date1, LocalDate date2)