Possible Duplicate:
How to check 2 date fields and compare to see which date is ahead, behind or the same
I am trying to implement a validation which should compare two dates and give an alert message.
entrydate is a text feild in our ASP page and so is vdata. I should check and make sure that vdata is always greater than or equal to entrydate. The code below is not working.
Please help to identify what the problem is with the this code:
if(document.Step2.entrydate.value <= document.all(vData).value)