code: public static Date toDateFromIso8601(String s) {
          if (s == null) return null;
          return ISODateTimeFormat.dateTimeNoMillis().parseDateTime(s).toDate();
      }
docs: Parses a text string with a date in ISO 8601 format into a {@link java.util.Date} object.
  @param s     text with ISO 8601 formatted date
  @return Date