Validate a date with regular expresion using javascript.