Indicates whether two DateTime objects are on the same day.
bool isSameDay(DateTime date) { return year == date.year && month == date.month && day == date.day; }