isAtSameMonthAs method

bool isAtSameMonthAs(
  1. DateTime other
)

Checks if this DateTime is in the same month and year as other.

Implementation

bool isAtSameMonthAs(DateTime other) =>
    isAtSameYearAs(other) && month == other.month;