@Override
    void setStartDate(String newStartDate) throws IllegalArgumentException {

        try {
            if (newStartDate.contains(":")) {
                // User passed in a time as well as date
                setStartDate(defaultDateTimeFormat.parse(newStartDate));
            } else {
                setStartDate(defaultDateFormat.parse(newStartDate));
            }
        } catch (ParseException e) {
            try {
                if (newStartDate.contains(":")) {
                    // User passed in a time as well as date
                    setStartDate(isoDateTimeFormat.parse(newStartDate));
                } else {
                    setStartDate(isoDateFormat.parse(newStartDate));
                }
            } catch (ParseException pe) {
                throw new IllegalArgumentException(getLocalizedString("BL_INVALID_MINDATE"), e);
            }
        }
    }
@ Override void setStartDate ( String newStartDate ) throws IllegalArgumentException { try { if ( newStartDate . contains ( ":" ) ) { setStartDate ( defaultDateTimeFormat . parse ( newStartDate ) ) ; } else { setStartDate ( defaultDateFormat . parse ( newStartDate ) ) ; } } catch ( ParseException e ) { try { if ( newStartDate . contains ( ":" ) ) { setStartDate ( isoDateTimeFormat . parse ( newStartDate ) ) ; } else { setStartDate ( isoDateFormat . parse ( newStartDate ) ) ; } } catch ( ParseException pe ) { throw new IllegalArgumentException ( getLocalizedString ( "BL_INVALID_MINDATE" ) , e ) ; } } }
@param newStartDate
the startDate to set