bool Date::operator< (const Date & other) const { if (Year() < other.Year()) { return true; } else if (Year() == other.Year()) { if (Month() < other.Month()) { return true; } else if (Month() == other.Month()) { return Day() < other.Day(); } } return false; }
bool Date::operator== (const Date & other) const { return Year() == other.Year() && Month() == other.Month() && Day() == other.Day(); }