diffDays static method

int diffDays(
  1. DateTime minorDate,
  2. DateTime majorDate
)

Implementation

static int diffDays(DateTime minorDate, DateTime majorDate) {
  return majorDate.difference(minorDate).inDays;
}