@Test public void daysBetween() { Date t1 = DateUtil.string2Date("2018-09-12 11:53:55"); Date t2 = DateUtil.string2Date("2018-09-13 10:53:55"); int d = DateUtil.daysBetween(t2, t1); Assert.isTrue(d == 1, ErrorCodeDef.SYSTEM_ERROR_10001); }
public static int daysBetween(final Date startDate) { return daysBetween(startDate, getCurrentDate()); }
DateUtil { public static int daysBetween(final Date startDate) { return daysBetween(startDate, getCurrentDate()); } }
DateUtil { public static int daysBetween(final Date startDate) { return daysBetween(startDate, getCurrentDate()); }  }
DateUtil { public static int daysBetween(final Date startDate) { return daysBetween(startDate, getCurrentDate()); }  static Date string2Date(final String ds); static Date string2Date(final String date, final String format); static String date2String(final Date date); static String date2String(final Date date, final String format); static String getCurrentTimestamp(); static long getCurrentTime(); static Date getCurrentDate(); static int daysBetween(final Date startDate); static Date getYrMonthLastDay(final Date d); static Date getYrMonthFirstDay(final Date d); static int daysBetween(final Date startDate, final Date endDate); }
DateUtil { public static int daysBetween(final Date startDate) { return daysBetween(startDate, getCurrentDate()); }  static Date string2Date(final String ds); static Date string2Date(final String date, final String format); static String date2String(final Date date); static String date2String(final Date date, final String format); static String getCurrentTimestamp(); static long getCurrentTime(); static Date getCurrentDate(); static int daysBetween(final Date startDate); static Date getYrMonthLastDay(final Date d); static Date getYrMonthFirstDay(final Date d); static int daysBetween(final Date startDate, final Date endDate);  }