@ 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 .