I need help to compare 2 strings that i have and i want to check if one of them has less value than the other so i can throw an alert message. My code is as followed
if (dateEntered <= date) {
print("DateEntered wrong $dateEntered");
}
The error is that
The operator '<=' isn't defined for the class 'String'. Try defining the operator '<='
Thank you for your time