Returns true if a and b are in the same year and month.
true
a
b
static bool isSameMonth(DateTime a, DateTime b) { return a.year == b.year && a.month == b.month; }