计算日期之间的时间差

long daysDiff = ChronoUnit.DAYS.between(startDate, endDate);
原文地址:https://www.cnblogs.com/zhshlimi/p/9762785.html