I wanted to point out that when you are taking the value from the input field in a variable, the input is not an integer. It is in the form: yyyy-mm-dd
So we will not be able to compare the dates using the simple comparison operators. You need to take out yyyy, mm and dd separately for the two dates and then compare the individually.
Hope this will get the checking function up and running
I wanted to point out that when you are taking the value from the input field in a variable, the input is not an integer. It is in the form: yyyy-mm-dd So we will not be able to compare the dates using the simple comparison operators. You need to take out yyyy, mm and dd separately for the two dates and then compare the individually.
Hope this will get the checking function up and running