/** * Check if the current date is between the two dates in argument. * * @param beforeDate the first date of the period * @param afterDate the second date of the period * @return true if the current date is included between the two dates, * false otherwise * @see #between(Date, Date, Date) */ public static boolean currentPeriod(Date beforeDate, Date afterDate) { return between(new Date(), beforeDate, afterDate); }