isSameMonth method

bool isSameMonth(
  1. DateTime b
)

Whether or not two dates are in the same month.

Implementation

bool isSameMonth(DateTime b) => year == b.year && month == b.month;