When comparing two dates that are of the data type string they will need to be first converted to dates. Once this is done a simple comparison test is possible.
void compareDates(string date1, string date2) {
//create a time_t object
time_t rawt…
more »