Article View: borland.public.cppbuilder.database.ado
Article #5362Re: DBGrid
From: Nigel Jones
Date: Mon, 11 Jun 2001 12:48
Date: Mon, 11 Jun 2001 12:48
27 lines
1551 bytes
1551 bytes
Hi, You can easily format the field by double-clicking on the Query (or whatever), clicking the 'Add All Fields' button, then choosing the time field from the list and editing the DisplayFormat property. A good one to use might be hhhh:mm:ss hhhh means display the hour in 24-hour clock format. Nigel Jones "David Allen" <djalyh@telusplanet.net> wrote in message news:3b210042$1_1@dnews... > I use a DBGrid to display a database table. One of the fields is a > date/time field that in the underlying Access database shows a 24-hour > clock. In DBGrid, however, the time is displayed with AM or PM. How can I > change this display to the 24-hour time? > > Thanks, > > David Allen > >
Technical Details
Message-ID:
<3b24be58_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b210042$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,7b5cabbada24585e X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-06-11 06:14:50 PST From: "Nigel Jones" <npj@fasl.co.uk> Newsgroups: borland.public.cppbuilder.database.ado References: <3b210042$1_1@dnews> Subject: Re: DBGrid Date: Mon, 11 Jun 2001 13:48:37 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.125.84.166 Message-ID: <3b24be58_1@dnews> X-Trace: dnews 992263768 212.125.84.166 (11 Jun 2001 05:49:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews