Hi Jeff,
The CompareValidator will follow the CultureInfo object defined on the
current thread of the page. For example, <@Page Culture="en-GB" >. But it
only supports the DateTimeFormatInfo.ShortDatePattern which never uses MMM,
only MM or M.
My "Peter's Date Package" (
http://www.peterblum.com/datecontrols/home.aspx)
can handle this. It's DateTextBox (which includes a fancy popup calendar)
can be set to allow the abbreviated month name. Download the free trial
version and set it up with these settings:
1. Create a DateTimeFormatInfo object and assign it to the
DateTextBox.xDateTimeFormatInfo property. See page 34 of the User's Guide.
Set the DateTimeFormatInfo.ShortDatePattern to "dd-MM-yyyy" and
DateTimeFormatInfo.DateSeparator = "-".
2. Set the xAllowMonthNames property to "Show"
3. Peter's Date Package includes its own validator, DateTextBoxValidator,
that will handle this unusual format. So use it for validation.
--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx