public static void main(String[] args) {
System.out.println(ChronoUnit.DAYS.between(LocalDate.now(), LocalDate.parse(“2021-02-08”)));
}
03-19
2071
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
public static void main(String[] args) {
System.out.println(ChronoUnit.DAYS.between(LocalDate.now(), LocalDate.parse(“2021-02-08”)));
}