isSameDate method

bool isSameDate(
  1. DateTime d1,
  2. DateTime d2
)

check if two dates are the same

Implementation

bool isSameDate(DateTime d1, DateTime d2) =>
    d1.year == d2.year && d1.month == d2.month && d1.day == d2.day;