public static Date parseXSDate(String dateStr,TimeZone defaultTimeZone,CalendarFieldsToDateConverter calToDateConverter) throws DateParseException {
  Matcher m=PATTERN_XS_DATE.matcher(dateStr);
  if (!m.matches()) {
    throw new DateParseException("The value didn't match the expected pattern: " + PATTERN_XS_DATE);
  }
  return parseDate_parseMatcher(m,defaultTimeZone,true,calToDateConverter);
}

public static Date parseXSDate ( String dateStr , TimeZone defaultTimeZone , CalendarFieldsToDateConverter calToDateConverter ) throws DateParseException { Matcher m = PATTERN_XS_DATE . matcher ( dateStr ) ; if ( ! m . matches ( ) ) { throw new DateParseException ( "The value didn't match the expected pattern: " + PATTERN_XS_DATE ) ; } return parseDate_parseMatcher ( m , defaultTimeZone , true , calToDateConverter ) ; }
parses an w3c xml schema date string ( not time or date - time ) . unlike in iso 8601 : 2000 second edition , year - 1 means b . c 1 , and year 0 is invalid .
