private boolean compareDates(GregorianCalendar gc)
    {
        return ((gc != null) && (get(GregorianCalendar.DAY_OF_MONTH) == gc.get(DAY_OF_MONTH))
            && (get(GregorianCalendar.MONTH) == gc.get(GregorianCalendar.MONTH)) && (get(GregorianCalendar.YEAR) == gc
                .get(GregorianCalendar.YEAR)));
    }