The validators use the current culture and the system's configuration in the
Regions settings to determine what the proper format is. You can change the
culture at the page or application level via:
<%@ Page Culture="es-MX" UICulture="es-MX" %>
which is "Spanish - Mexico"
OR
<configuration><system.web>
<globalization culture="es-MX" uiCulture="es-MX" />
</system.web></configuration>
Of course, the regularexpression is always an option, or you can validate on
the server using Date.ParseExact.
karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:uZ****************@TK2MSFTNGP10.phx.gbl...
I'm using this CompareValidator to validate dates but my default its
mm/dd/yyyy
<asp:CompareValidator ControlToValidate="DOB" Display="Dynamic"
Text="Invalid birth date!" Operator="DataTypeCheck"
Type="Date" Runat="Server" ID="DOBcompval" />
Is there a way i can change it to dd/mm/yyyy of course if not using
RegularExpressionValidator
Any ideas