private String [ ] getDatePatterns ( ProjectProperties properties ) { String pattern = "" ; char datesep = properties . getDateSeparator ( ) ; DateOrder dateOrder = properties . getDateOrder ( ) ; switch ( dateOrder ) { case DMY : { pattern = "dd" + datesep + "MM" + datesep + "yy" ; break ; } case MDY : { pattern = "MM" + datesep + "dd" + datesep + "yy" ; break ; } case YMD : { pattern = "yy" + datesep + "MM" + datesep + "dd" ; break ; } } return new String [ ] { pattern } ; }
Generate date patterns based on the project configuration .