In your current script, the confirm() call doesn't actually do anything.
What ever you're trying to do it will need to incorporate the following in some form or another.
if(confirm("The date you chose " + curdate + "is in the future OK to continue"))
//Do stuff
Goin' by what you've posted and the answer posted by @dystroy you're probably looking for
if($("#sdate").val() > curdate && confirm("The date you chose " + curdate + "is in the future OK to continue")
//Do stuff
In the above script both conditions are present in the one conditional. As per @dystroy's answer, I've included the .val() call. The other change is that it has been presumed that you're looking for an element with id="sdate", so the selector include the id symbol #
Edit (after OP's comment) - Updated based on this stackoverflow post
If you're trying to prevent a form submission then you should attach the function to the form in a manner similar to this
<form name="myForm" onsubmit="return validateMyForm();">
Once you've bound the event you could update your code to something like
if($("#sdate").val() > curdate && confirm("The date you chose " + curdate + "is in the future OK to continue")
return true;
else
return false;
This should only submit the form if the confirm returns true and the date inequality is met.