Regular expression for validating date of birth
22-Aug-2020 04:39
The pattern is used to search strings or files to see if matches are found. Here are some examples of how to split a string using Regex in C#.
Next select “Matches” in the other drop-down and enter ^(19\d|20[0-1]\d)$ in the input field.
Your organization has a few vacant positions and you are planning to use the Google Forms service to prepare a pre-interview questionnaire for job applicants.
You have created a form and it has all the standard fields where candidates can enter their name, email address, website URL, phone number, zip code and other essential details.
The form is ready for publishing online but before you make it live, how would you ensure that candidates have entered data in the correct format?
And even if the format is proper, is the data itself valid?
You'll likely want to use a Range Validator similar to what oned_gk suggested : Try sumitd answer string str Year = "1998"; string str Month = "4"; string str Day = "5"; Date Time d1 = Date Time. Try entering dates in the following format: yyyy-mm-dd If that doesn't work, double check the code you have htere and compare it to what I posted. That's why the single field validator I created doesn't work for you.