sameDay method

bool sameDay(
  1. DateTime compareDate
)

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;
  }
}