function checkDate(date)
{
var d = new Date(date);
var mm = d.getMonth()+1;
var dd = d.getDate();
var yy = d.getYear();
mm = (mm<10)?"0"+mm:mm;
dd = (dd<10)?"0"+dd:dd;
var va = mm+"/"+dd+"/"+yy;
if(date == va)
{
alert("good date"
return true;
}
alert("invalid date"
return false;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.