I checked the jscript reference but did not find an answer to this: I want to compare 2 dates in javascript - want to know if one is greater then the other<BR><BR>I get the variables from form fields in another page.<BR>They are "entereddate" and "checkenddate"<BR><BR>I am doing something wrong because the checking does not occur correctly, it sometimes does but not when dates are in the same month - do I need to convert these variables to dates first somehow?<BR><BR>code:<BR><BR>if (entereddate&#062;checkenddate){<BR> alert("You entered a week ending date that is beyond your assignment ended date

Maybe you chose the wrong assignment

click on the back button to choose another assignment");<BR> return false;<BR>} else{<BR> alert("Ok to Process");<BR>}