differenceInDays method

int differenceInDays(
  1. DateTime other
)

Implementation

int differenceInDays(DateTime other) {
  return toUtc().difference(other.toUtc()).inDays;
}