The server dictates format. It always uses the ShortDatePattern and
DateSeparator properties of the CultureInfo.DateTimeFormatInfo object that
is running with the current thread.
Remember that client-side validation is a bonus. Server side validation is
manditory because many browsers don't support client-side validation. (Only
DHTML browsers like IE and IE/Mac support client-side.) Since the server
cannot know what format the client is using, it must dictate to the user the
format. Often web sites determine the user's format by asking them to
specify their language or culture. They can also check the
Request.UserLanguages property.
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Jorge EA" <co**********@hotmail.com> wrote in message
news:2p************@uni-berlin.de...
Hi there,
According to the following article, a textbox for a date entry field can
be
validated with a CompareValidator:
http://msdn.microsoft.com/library/de...stdatatype.asp
My question is: which date format would the validator consider correct,
the
one on the web server or the one on the browser's client computers?
Thanks in advance,
-Jorge