code: private static Calendar dateToCalendar(Date date) {
  		Calendar cal = Calendar.getInstance();
  		cal.setTime(date);
  		return cal;
  	}
docs: Convert the given Date object to a Calendar instance.
  
  @param date
  The Date object.
  @return The Calendar instance.