Returns true if this date is in the same month and year as other.
true
other
bool isSameMonth(DateTime other) => year == other.year && month == other.month;