isSameMonth static method

bool isSameMonth(
  1. DateTime a,
  2. DateTime b
)

Returns true if a and b are in the same year and month.

Implementation

static bool isSameMonth(DateTime a, DateTime b) {
  return a.year == b.year && a.month == b.month;
}