public static String convertCalendarToStr(Calendar cal) throws Exception {
  SimpleDateFormat format=new SimpleDateFormat(ScheduleInfo.FULL_DAYTIME_FORMAT);
  String formatted=format.format(cal.getTime());
  log.debug("converted calendar time:{}",formatted);
  return formatted;
}

public static String convertCalendarToStr ( Calendar cal ) throws Exception { SimpleDateFormat format = new SimpleDateFormat ( ScheduleInfo . FULL_DAYTIME_FORMAT ) ; String formatted = format . format ( cal . getTime ( ) ) ; log . debug ( "converted calendar time:{}" , formatted ) ; return formatted ; }
convert a calendar to a readable time string .
