Checks if two DateTime objects represent the same date (year, month, and day).
bool equals(DateTime date) => year == date.year && month == date.month && day == date.day;