function date(){
var validformat=/^\d{2}\/\d{2}\/\d{4}$/
var returnval=false
if (!validformat.test(input.value))
alert("Invalid Date Format. Please correct and submit again.");
}
actually this one is giving alert, but my date format is mon-day-year
so if i give correct date lik 12-11-2003,it shows error msg, because this one (/^\d{2}\/\d{2}\/\d{4}$/) is checking lik this 12/11/2003.how can i get lik mon-day-year .can i change the - instead of /