计算两个时间类型LocalDate合着LocalDateTime之间相差天数
LocalDate startDate = LocalDate.of(2020, Month.JANUARY, 1);
LocalDate endDate = LocalDate.of(2021, Month.JANUARY, 1);
long daysBetween = ChronoUnit.DAYS.between(startDate, endDate);
System.out.println("Days between: " + daysBetween);
迎风少年