Whether it is the same month (and year) as other.
other
bool isSameMonth(DateTime other) => year == other.year && month == other.month;