html input type date validation code example
Example: how to validate input type=date in javascript
function isValidDate(d){
return !isNaN((new Date(d)).getTime());
}
function isValidDate(d){
return !isNaN((new Date(d)).getTime());
}