differenceInDays method

int differenceInDays(
  1. DateTime other
)

Difference from another date in days

Implementation

int differenceInDays(DateTime other) => difference(other).inDays.abs();