isSameDate method

bool isSameDate(
  1. DateTime other
)

Returns true if two DateTime are on the same exact day (Day, month and year).

Implementation

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