DateConverter dateConverter = new DateConverter();
String[] datepattern = { "yyyy-mm-dd", "yyyy/mm/dd", "yyyy.mm.dd", "yyyy-MM-dd HH:mm:ss" };
dateConverter.setPatterns(datepattern);
String[] datepattern = { "yyyy-mm-dd", "yyyy/mm/dd", "yyyy.mm.dd", "yyyy-MM-dd HH:mm:ss" };
dateConverter.setPatterns(datepattern);
ConvertUtils.register(dateConverter, Date.class);
你懂得。