isSameDay method

bool isSameDay(
  1. DateTime date
)

Checks whether the date is in the same day as the given date

Implementation

bool isSameDay(
  DateTime date,
) =>
    date.year == year && date.month == month && date.day == day;