isSameDay method

bool isSameDay(
  1. DateTime date
)

Implementation

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