zishan0215 / attendance

Attendance Management System for Computer Departement, JMI
Other
40 stars 128 forks source link

New Period checking issues #33

Open zishan0215 opened 10 years ago

zishan0215 commented 10 years ago

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