As 'date' input doesn't have a [pattern] attribute, you can check its value with this RegExp.
Does not check if the given day corresponds to its month.
Ex : 1989-03-30 will be considered as correct