public static Date convertISO8601toDate(String dateString) throws ParseException {
  DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
  Date date=dateFormat.parse(dateString);
  return date;
}

public static Date convertISO8601toDate ( String dateString ) throws ParseException { DateFormat dateFormat = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" ) ; Date date = dateFormat . parse ( dateString ) ; return date ; }
method that converts a an iso 8601 string to java date
