class DateUtil {

    public static boolean isDateBetween(Date date, Date begin, Date end) {
        int c1 = compareDate(begin, date);
        int c2 = compareDate(date, end);

        return (((c1 == -1) && (c2 == -1)) || (c1 == 0) || (c2 == 0));
    }

}