计算两个日期间隔天数
LocalDate date = LocalDate.parse(startDate, DateTimeFormatter.ofPattern("yyyyMMdd"));
LocalDate date1 = LocalDate.parse(endDate, DateTimeFormatter.ofPattern("yyyyMMdd"));
long result = date1.toEpochDay() - date.toEpochDay();
计算两个日期间隔天数
LocalDate date = LocalDate.parse(startDate, DateTimeFormatter.ofPattern("yyyyMMdd"));
LocalDate date1 = LocalDate.parse(endDate, DateTimeFormatter.ofPattern("yyyyMMdd"));
long result = date1.toEpochDay() - date.toEpochDay();