There are a lot of good answers on this thread but personally I think
javascript itself is a better date validator.
function isDate(sDate) {
var scratch=new Date(sDate);
if (scratch.toString()=="NaN" || scratch.toString()=="Invalid Date") {
alert("Not a Date");
return false;
} else {
return true;
}
Javascript's date parser is actually very robust and powerful and able
to hande 1/20/2004 as well as January 20 2004. IE returns NaN (not a
number) when it can't figure out a date, Mozilla (gekko engine) returns
Invalid Date.
--
-------------
http://www.hunlock.com -- DHTML for the rest of us.