isSameDay method

bool isSameDay(
  1. DateTime date
)

Chech if this is the same date then other (without reference to Time)

Implementation

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