Home › Forums › WinForms controls › Other WinForms controls › Validation Provider: Bad Regex?
I assigned a WinTextBox to use a regex validation through the validation provider, but it doesn’t seem to work correctly.
The regex format name I used is “Date (DD/MM/YYYY)”.
When testing the validation in the Validation Configuration dialog or in the executing UI it fails for for any date where the day digits are > 12.
It doesn’t seem to matter what the month or year is, but if the day portion is > 12 it fails validation.
What am I doing wrong.
FYI: This is in VS2008.
Imported from legacy forums. Posted by Paul (had 3340 views)
Have you tried lowercase? Normally, date format should be in lowercase, except for the month part, which should be in uppercase, since lowercase means minutes instead of months.
Imported from legacy forums. Posted by André (had 361 views)
You misunderstood. “Date (DD/MM/YYYY)” is not the regex string. It is the name of a predefined format that came with the XCeed install.
Imported from legacy forums. Posted by Paul (had 387 views)
Sorry for the misunderstanding.
I tested this here, and it works fine. Can you post a sample project reproducing the issue, so we can investigate this further?
Imported from legacy forums. Posted by André (had 4046 views)