Checks whether the date is in the same month as the given date
date
bool isSameMonth(DateTime date) { return date.year == year && date.month == month; }