I have 2 textboxes to enter dates-startdate and enddate. I want year of both the dates to be similar. I tried<BR>if(theForm.startdate.getFullYear() != theForm.enddate.getFullYear()){<BR>alert("startdat e and enddate should be same);<BR>return false;<BR>}<BR><BR>I get error object not supported. I think startdate is in string format and I need to convert that into date format before I compare the year. Any ideas??<BR>thanks<BR><BR>