code: public static Date toDate(String dateTimeString) throws ParseException {
          Instant instant = toInstant(dateTimeString);
          return (instant != null ? Date.from(instant) : null);
      }
docs: Parses an ISO8601 formatted string a returns a Date instance.
  
  @param dateTimeString the ISO8601 formatted string
  @return a Date instance for the ISO8601 formatted string
  @throws ParseException if the provided string is not in the proper format