sameDay method
Checks if two dates are equal
Implementation
bool sameDay(DateTime compareDate) {
if (this == null) {
return false;
} else {
return day == compareDate.day &&
month == compareDate.month &&
year == compareDate.year;
}
}