Checks if the date is the same as the specified other date, ignoring time.
other
bool isSameDate(DateTime other) => year == other.year && month == other.month && day == other.day;