@Override
    public Calendar convertDateToCalendar(java.util.Date date) {
        Calendar calendar = null;
        if (date != null) {
            calendar = Calendar.getInstance();
            calendar.setTime(date);
            calendar.clear(Calendar.ZONE_OFFSET);
            calendar.clear(Calendar.DST_OFFSET);
        }
        return calendar;
    }
@ Override public Calendar convertDateToCalendar ( java . util . Date date ) { Calendar calendar = null ; if ( date != null ) { calendar = Calendar . getInstance ( ) ; calendar . setTime ( date ) ; calendar . clear ( Calendar . ZONE_OFFSET ) ; calendar . clear ( Calendar . DST_OFFSET ) ; } return calendar ; }
This method is used to get Calendar date for the corresponding date object.

@param date(Date) date for which Calendar value has to be found.
@return calendar value corresponding to the date.