I am looking to get the regex for the date format mentioned above.
I tried /^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$/ but got the format of DD/MM/YYYY.
This did not work either /([12]d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]d|3[01]))/.
2
I am looking to get the regex for the date format mentioned above.
I tried /^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$/ but got the format of DD/MM/YYYY.
This did not work either /([12]d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]d|3[01]))/.
2