Date Of Birth
-
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
-
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
using System.Beer;
-
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
You can use a Masked Textbox?
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive -
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
You can use a pattern like "\d{2}/\d{2}/\d{4}" to validate only the format. You can rule out dates that clearly are invalid with a pattern like "(0[1-9]|[12]\d|3[01])/(0[1-9]|1[0-2])/(19|20)\d\d", but a pattern that would actually check if the date is valid would be extremely complex. Just imagine all the combinations to validate the correct number of days in the different months, then imagine leap years on top of that...
--- b { font-weight: normal; }
-
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
-
I am using a textbox which takes date of birth as input I want to use regular expression validator for that textbox The Date Format Should Be mm/dd/yyyy and valid date Can Enyone Hel me Out
If the regex isn't an absolute requirement, look into DateTime.TryParse()