^(19|20)\d{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$
https://www.regexplanet.com/share/index.html?share=yyyydthtunr