In extension to the parse-date-in-grails-2-x-x-regardless-format We’ll parse date from a list of available formats to java.util.Date using apache’s commons lang library. This can be used in the service layer like:

String[] datesFormats = new String[]{"yyyy-MM-dd", "yyyyMMdd", "yyMMdd"};
        
Date date = DateUtils.parseDate("1931-03-23",datesFormats);