public static Date parse(String isodate) throws InvalidDateException {
  Calendar calendar=getCalendar(isodate);
  return calendar.getTime();
}

public static Date parse ( String isodate ) throws InvalidDateException { Calendar calendar = getCalendar ( isodate ) ; return calendar . getTime ( ) ; }
parse the given string in iso 8601 format and build a date object .
