public static String formatDateTimeStringForEquivalentCommand(final Date date){
  if (date != null) {
    final SimpleDateFormat dateFormat=new SimpleDateFormat(DATE_FORMAT_LOCAL_TIME);
    dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
    return dateFormat.format(date);
  }
  return null;
}

public static String formatDateTimeStringForEquivalentCommand ( final Date date ) { if ( date != null ) { final SimpleDateFormat dateFormat = new SimpleDateFormat ( DATE_FORMAT_LOCAL_TIME ) ; dateFormat . setTimeZone ( TimeZone . getTimeZone ( "UTC" ) ) ; return dateFormat . format ( date ) ; } return null ; }
formats a date to string representation in " dd / mmm / yyyy : hh : mm : ss z " .
