Check if this date is in the same year than other
bool isSameYear(DateTime other) => year == other.year;