Instead of taking two ints, take two Date objects (or whatever type you defined firstDate and secondDate to be) :
Code:bool isLarger(const Date& firstDate, const Date& secondDate) { if (firstDate.convert() > secondDate.convert()) { cout << "The first date entered is the most recent. " << endl << endl; return true; } else { cout << "The second date entered is the most recent. " << endl << endl; return false; } }