public void setDateTime ( String date ) { String [ ] patterns = { RFC_1123_PATTERN , ISO_8601_UTC_PATTERN , ISO_8601_UTC_MILLIS_PATTERN , ISO_8601_PATTERN , ISO_8601_MILLIS_PATTERN , RFC_850_PATTERN , ASCTIME_PATTERN } ; for ( int i = 0 ; i < patterns . length ; i ++ ) { if ( setDateTime ( date , patterns [ i ] ) ) break ; } }
Do nothing if date format is not supported