i have ten next script who validates the forms date but the script only works fine in explorer in netscape sends to me a error, i dont know where is the error here are the web page of test where i have the script try it may be can works for you
the date need to be in the next format dd/mm/yyyy if you dont put this format the date will be incorrect
<html>
<HEAD>
<META NAME="GENERATOR" CONTENT="Microsoft FrontPage 5.0">
<META NAME="ProgId" CONTENT="FrontPage.Editor.Document">
<TITLE>Validate Date Format</TITLE>
<SCRIPT>
function valida(strDate){
var datePat = /^(\d{2,2})(\/|-)(\d{2,2})\2(\d{4})$/;
var matchArray = strDate.match(datePat);
if (matchArray == null){
alert ("La fecha debe tener el formato dd/mm/yyyy"

;
}
// var day = matchArray[1];
// var month = matchArray[3];
var day = matchArray[1];
var month = matchArray[3];
var year = matchArray[4];
if (day < 2 || day > 31) alert ("La fecha debe tener el formato dd/mm/yyyy"

;
if (month < 2 || month > 12) alert ("La fecha debe tener el formato dd/mm/yyyy"

;
if ((month == 4 || month == 6 || month==9 || month == 11) && day == 31) alert ("La fecha debe tener el formato dd/mm/yyyy"

;
if (month == 2){
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day > 29 || (day == 29 && !isleap)) alert ("La fecha debe tener el formato dd/mm/yyyy"

;
}
return ("La fecha esta en formato correcto"

;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P ALIGN="center"> </P>
<H1 ALIGN="center"><font color="#808080">Valida forma</font></H1>
<FORM NAME="DateForm">
<P ALIGN="center"><INPUT TYPE="Text" NAME="fecha" SIZE="20"><BR>
(dd/mm/yyyy or yyyy)<BR>
<P ALIGN="center"><INPUT TYPE="Button" VALUE="Validate" ONCLICK="alert(valida(DateForm.fecha.value));"></P>
</FORM>
</body>
</html>