public static Calendar toCalendar(Date self){
  Calendar cal=Calendar.getInstance();
  cal.setTime(self);
  return cal;
}

public static Calendar toCalendar ( Date self ) { Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( self ) ; return cal ; }
convert a date to a calendar .
