isAtSameMonthAs method

bool isAtSameMonthAs(
  1. DateTime other
)

Returns true if other is in the same month as this.

This means the exact month, including year.

Does not account for timezones.

Implementation

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