compareDesc static method

int compareDesc(
  1. DateTime dateLeft,
  2. DateTime dateRight
)

Compare the two dates and return -1 if the first date isAfter the second, 1 if the first date isBefore the second or 0 first date isEqual the second.

Implementation

static int compareDesc(DateTime dateLeft, DateTime dateRight) =>
    (-1) * compareAsc(dateLeft, dateRight);