isAtSameDayAs method

bool isAtSameDayAs(
  1. DateTime other
)

Returns true if other is on the same day as this.

This means the exact day, including year and month.

Does not account for timezones.

Implementation

bool isAtSameDayAs(DateTime other) => isAtSameMonthAs(other) && day == other.day;