Hi CyberLotus,
The CompareValidator and RangeValidator offer the Type=Date property
setting. However, its limited to "short date patterns". That means the month
is represented by 2 digits, not by text, which is what "mmm" means.
You have two choices:
1. Whenever the built in validators don't do the job, use the
CustomValidator and write the logic yourself. The DateTime.ParseExact()
method will help you convert to the format you want. You probably will have
to live without the client-side version unless you are prepared to do a lot
of javascript coding.
2. My Peter's Date Package (
http://www.peterblum.com/datecontrols/home.aspx)
has a DateTextBox that supports the abbreviated month format. You establish
a short date pattern in the xDateTimeFormatInfo property like "dd-MM-yyyy"
and dateseparator = "-". (Note that I wrote two Ns in the short date
pattern). Then you set the xAllowMonthNames property to "Show". (After you
download the free trial version, locate these properties in the User's Guide
for details.)
Next, you use the validators I supply, which includes a Compare validator
for this formatting.
--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx