private static String convertCalendarToString(Calendar calendar){
  if (calendar != null) {
    SimpleDateFormat sdf=new SimpleDateFormat(LicenseConstants.MM_DD_YYYY_FORMAT);
    return sdf.format(calendar.getTime());
  }
 else {
    return null;
  }
}

private static String convertCalendarToString ( Calendar calendar ) { if ( calendar != null ) { SimpleDateFormat sdf = new SimpleDateFormat ( LicenseConstants . MM_DD_YYYY_FORMAT ) ; return sdf . format ( calendar . getTime ( ) ) ; } else { return null ; } }
convert calendar to mm / dd / yyyy format .
