isSameDate method

bool isSameDate(
  1. DateTime date
)

Implementation

bool isSameDate(DateTime date) {
  return year == date.year && month == date.month && day == date.day;
}