This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Hi, Not exactly what u need, but the below expression will validate YYMMDD format ^((\d((0|1)(0[1-9]|\d|3)|(0|1)(0[1-9]|\d|30)|02(0[1-9]|1\d|2[0-8])))|(|)0229)$ I am not a reg Ex geek, so cannot modify it for youer needs, but hope it helps. NET 2.0 Basics section of the Wrox Programmer to Programmer discussions.The date time picker contains a validation event which may be handled in code; the problem with validating the control using its validation event is that, if the validation includes confirmation of the change, the validation event will fire twice.The confirmation box shall display the previous and current date values and ask the user to confirm which date time value to retain.
control, with the value entered into another input control or a constant value.
You can also use the Compare Validator control to indicate whether the value entered into an input control can be converted to the data type specified by the The Regular Expression Validator control checks whether the value of an input control matches a pattern defined by a regular expression.
This type of validation allows you to check for predictable sequences of characters, such as those in social security numbers, e-mail addresses, telephone numbers, and postal codes Hi macca, From another point of view, you might want to use a date picker to help provide another form of user input. The selected date then gets formatted correctly and placed into the Text Box.
There are several date pickers available; many listed in the Control Gallery section of this website.
We build and market a couple different options as well. This is a general problem with a hidden data field that you don't want to validate right?