isAtSameDayAs method

bool isAtSameDayAs(
  1. DateTime other
)

Checks if this DateTime is on the same day, month, and year as other.

Implementation

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