As 'datetime-local' 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 : 2019-02-30 will be considered as correct