I am not much aware of javascript. I want to compare the two dates. I have written the code but it does not work in overall.
Start Date: <input type="text" name="startDate" size="12">
<br>
End Date: <input type="text" name="endDate" size="12">
<a href="javascript:Compare();">Compare</a>
If the user enters “8/1/2005” for the Start Date and “8/2/2005” for the End Date, the script works. But if the user enters “8/1/2005” and “11/01/2005” the script does not work.
Can anyone please give the code to compare the start date and the end date.