isSameDay method

bool isSameDay(
  1. DateTime other
)

Whether this falls on the same calendar day as other.

Only the year, month and day are compared; the time is ignored.

Implementation

bool isSameDay(DateTime other) =>
    year == other.year && month == other.month && day == other.day;