code: public static String fromISODateTimeUTCtoRfc822(final String val) throws BadDateException {
      try {
        synchronized (isoDateTimeUTCFormat) {
          return rfc822Date(isoDateTimeUTCFormat.parse(val));
        }
      } catch (Throwable t) {
        throw new BadDateException();
      }
    }
docs: Get RFC822 form from "yyyyMMddThhmmssZ"
  
  @param val String "yyyyMMddThhmmssZ"
  @return Date
  @throws BadDateException on format error