Checks if the current date is in the same year as other
other
bool isSameYear(DateTime other) => year == other.year;