Checks if this DateTime represents the same month as the other DateTime.
bool isSameMonth(DateTime other) { return year == other.year && month == other.month; }