protected boolean setDateTime(String date, String pattern) {
        boolean dateChanged = true;
        dateFormat.applyPattern(pattern);
        try {
            setDateTime(dateFormat.parse(date));
        } catch (ParseException e) {
            dateChanged = false;
        }
        return dateChanged;
    }
protected boolean setDateTime ( String date , String pattern ) { boolean dateChanged = true ; dateFormat . applyPattern ( pattern ) ; try { setDateTime ( dateFormat . parse ( date ) ) ; } catch ( ParseException e ) { dateChanged = false ; } return dateChanged ; }
Do nothing if date format is not supported.