Article View: borland.public.cppbuilder.database.ado
Article #4531Re: Paradox
From: Ray
Date: Sat, 15 Dec 2001 05:21
Date: Sat, 15 Dec 2001 05:21
17 lines
1327 bytes
1327 bytes
Isnt this controled by the regional settings of the computer not the database
table?
the database probably stores the value like a tdatetime
if you want to change the Regional settings for the computer try this
char * Locale=new char[96];
if (GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,LOCALE_SSHORTDATE,Locale,95))
{
AnsiString ss=Locale;
if (ss.AnsiPos("MM/dd/yyyy")!=1)
{
AnsiString l="MM/dd/yyyy";
SetLocaleInfo(LOCALE_SYSTEM_DEFAULT,LOCALE_SSHORTDATE,l.c_str());
}
}
delete []Locale;
Technical Details
Message-ID:
<3C1ADDD7.D18FF3@everywhere.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3c18ab24_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,b5b7c82481659630 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-12-14 21:38:12 PST Message-ID: <3C1ADDD7.D18FF3@everywhere.com> Date: Sat, 15 Dec 2001 00:21:27 -0500 From: Ray <SpamBlows@everywhere.com> X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: Paradox References: <3c18ab24_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.229.106.46 X-Trace: dnews 1008393969 24.229.106.46 (14 Dec 2001 21:26:09 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews