public static Date fromISODate(final String val) throws BadDateException {
    try {
      synchronized (isoDateFormat) {
        try {
          isoDateFormat.setTimeZone(Timezones.getDefaultTz());
        } catch (TimezonesException tze) {
          throw new RuntimeException(tze);
        }
        return isoDateFormat.parse(val);
      }
    } catch (Throwable t) {
      throw new BadDateException();
    }
  }
public static Date fromISODate ( final String val ) throws BadDateException { try { synchronized ( isoDateFormat ) { try { isoDateFormat . setTimeZone ( Timezones . getDefaultTz ( ) ) ; } catch ( TimezonesException tze ) { throw new RuntimeException ( tze ) ; } return isoDateFormat . parse ( val ) ; } } catch ( Throwable t ) { throw new BadDateException ( ) ; } }
Get Date from "yyyyMMdd"

@param val String "yyyyMMdd"
@return Date
@throws BadDateException on format error