1 public static int getIntervalDays(Date date, Date otherDate) {
2     long time = Math.abs(new LocalDate(date).toDate().getTime() - new LocalDate(otherDate).toDate().getTime());
3     return (int) time / (24 * 60 * 60 * 1000);
4 }

 

相关文章:

  • 2021-10-07
  • 2021-10-17
  • 2021-03-30
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-10-07
  • 2021-10-07
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案