Problem in comparing dates in Javascript
Posted: Mon Oct 05, 2009 7:32 am
Hi,
I have a problem related to Javascript.
1) I have a php form in which there two text boxes.
2) User enter date in these text boxes via using a calender control.
3) Dates displayed in the textbox in this format i.e: 05-11-2009
I need to compare the dates of both text boxes, but my code is not working fine.
I think i need to convert these the values of both text boxes to date format, but i am unable to do this.
Can anyone please help in writing the new code.
Thanks
I have a problem related to Javascript.
1) I have a php form in which there two text boxes.
2) User enter date in these text boxes via using a calender control.
3) Dates displayed in the textbox in this format i.e: 05-11-2009
I need to compare the dates of both text boxes, but my code is not working fine.
I think i need to convert these the values of both text boxes to date format, but i am unable to do this.
Can anyone please help in writing the new code.
Thanks