JavaScript で日付チェックをおこなう。
function isValidDate(iYear, iMonth, iDay)
{
var dCheck = new Date(iYear, iMonth - 1, iDay);
if( dCheck.getFullYear() == iYear && dCheck.getMonth() == iMonth - 1 && dCheck.getDate() == iDay ) {
return true;
}
return false;
}
参照