code: public static long getDiffDay(Date d1, Date d2) {
          long between = Math.abs((d2.getTime() - d1.getTime()) / 1000);
          long day = between / 60 / 60 / 24;
          return (long) Math.floor(day);
      }
docs: 比较两个时间相差多少天