code: public static String formatDate(Date date) {
          return org.apache.http.client.utils.DateUtils.formatDate(date);
      }
docs: Formats the given date according to the RFC 1123 pattern.
  
  @param date
  The date to format.
  @return An RFC 1123 formatted date string.