Article View: borland.public.csharpbuilder.aspdotnet.general
Article #39Compare validator problem (validating dates types)
From: FERNANDO
Date: Wed, 30 Mar 2005 19:03
Date: Wed, 30 Mar 2005 19:03
11 lines
1569 bytes
1569 bytes
I'm using a not american type date (dd/mm/yyyy), but I couldn't use a compare validator because it not works with this date's format. Other problem is that if I send results to database it causes an error:
Its not possible determine the order year, month and date from M/d/yyyy.
I had tried to configure the Web.Config on Globalization with culture pt-BR (portuguese - Brazil, where this page will be used) and put this code on load page:
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("pt-BR")
But nothing causes result, if anyone could help me I would a preciate.
Thank you very much!!
Technical Details
Message-ID:
<424af7f9$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 124d48,28fd56897d99b3dd,start X-Google-Attributes: gid124d48,public X-Google-Language: ENGLISH,ASCII-7-bit From: "FERNANDO" <cadastro@santannainformatica.com.br> Sender: "FERNANDO" <cadastro@santannainformatica.com.br> Reply-To: "FERNANDO" <cadastro@santannainformatica.com.br> Subject: Compare validator problem (validating dates types) Newsgroups: borland.public.csharpbuilder.aspdotnet.general X-User-Info: 201.1.23.240 X-Forwarded-For: 10.15.10.16 NNTP-Posting-Host: 207.105.83.66 Message-ID: <424af7f9$2@newsgroups.borland.com> Date: 30 Mar 2005 11:03:21 -0800 X-Trace: newsgroups.borland.com 1112209401 207.105.83.66 (30 Mar 2005 11:03:21 -0800) Lines: 11 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail