One of the challenges that you face with showing the abbreviated month name
is that the CompareValidator doesn't support it. CompareValidator handles
digits for months.
There are a few third party DateTextBoxes with popup calendars available
that may handle abbreviated month names. Mine, "Peter's Date Package"
(
http://www.peterblum.com/datecontrols/home.aspx) definitely does. If you
choose to download a free trial version, here's how you will set it up.
1. Add the DateTextBox
2. Establish the format with the xDateTimeFormatInfo property described on
page 34 of the User's Guide. When you do this, you will set these values:
ShortDatePattern = "dd-MM-yy" (not MMM)
DateSeparator = "-"
3. Set the xAllowMonthNames property to "Show"
4. My stuff comes with validators to handle the unusual format. Add a
DateTextBoxValidator for that purpose.
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"pmclinn" <pe***@mclinn.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have a textbox named "mydate" and I want to add an "onblur" event to
it that will format the text in this format:
dd-MMM-yy
the data entry people use this format in the text box:
dd/mm/yy
d/mm/yy....
I'm having a heck of a time trying to get this to work. Any help would
be appreciated.