long daysDiff = ChronoUnit.DAYS.between(startDate, endDate); 转载于:https://www.cnblogs.com/zhshlimi/p/9762785.html