public static List<LocalDate> getEveryDay(String beginDate, String endDate ){
LocalDate begin = LocalDate.parse(beginDate);
LocalDate end= LocalDate.parse(endDate);
List<LocalDate> list = new ArrayList<>();
for(; end.comparseTo(begin) >= 0; begin = begin.plusDays(1L)){
list.add(begin);
}
return list;
}
06-08
157
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-08
348
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)