isSameDay method

bool isSameDay(
  1. DateTime other
)

Checks whether this date occurs on the same calendar day as other, including year.

Implementation

bool isSameDay(DateTime other) => year == other.year && isSameDate(other);