Check if two dates are in the same month
static bool isSameMonth(DateTime date1, DateTime date2) { return date1.year == date2.year && date1.month == date2.month; }