code: private String convertDateTime(long dt, String format)
      {
          if(format.length() == 0)
              format = Formats.DATETIME_FORMAT;
          return FormatUtilities.getFormattedDateTime(dt, format, false, 0L);
      }
docs: Converts the given milliseconds date value to the output date format.
  @param dt The date to be formatted
  @param format The format to use for the date
  @return The formatted date