使用以下代码即可
LocalDate nowDate = LocalDate.now();
LocalDate overDate = LocalDate.of(creditBillDTO.getBillYear(), Month.of(creditBillDTO.getBillMonth()), 1);
ChronoUnit.DAYS.between(overDate, nowDate);
使用以下代码即可
LocalDate nowDate = LocalDate.now();
LocalDate overDate = LocalDate.of(creditBillDTO.getBillYear(), Month.of(creditBillDTO.getBillMonth()), 1);
ChronoUnit.DAYS.between(overDate, nowDate);