validation – Validate Date entered is in yyyy/mm/dd format in Sitecore Forms

I have a text field in the Sitecore form where the user needs to enter a Date.
Currently, I am using Regex Validator that check date in mm/dd/yyyy format.

Need support to check if the date is in yyyy/mm/dd format.

{"regularExpression":"^((0[13578]|1[02])[/]31[/](18|19|20)[0-9]{2})|((01|0[3-9]|1[1-2])[/](29|30)[/](18|19|20)[0-9]{2})|((0[1-9]|1[0-2])[/](0[1-9]|1[0-9]|2[0-8])[/](18|19|20)[0-9]{2})|((02)[/]29[/](((18|19|20)(04|08|[2468][048]|[13579][26]))|2000))$"}

The above regex I am currently using.

Read more here: Source link