past date validation for input type date 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());
}