项目用到,所以就写了一个,没啥好说的,直接贴代码: /** * * countDateAndSet:取时间集合最大的时间和最小的时间 * * @param dateList * @return * @throws ParseException String[] */ public String[] countDateAndSet(List<String> dateList) throws ParseException{ if(dateList.size() < 2){ return null; }…