🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1223

Re: Formatting Date/Time Fields in DBgrid

#1223
From: Viatcheslav V. Vassiliev
Date: Thu, 23 Sep 2004 07:13
22 lines
1738 bytes
Try TDateTimeField->DisplayFormat.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"LeMar Longhurst" <llonghur@sbcglobal.net> �������/�������� � ��������
���������: news:41515fcd$1@newsgroups.borland.com...
>
> I am working on a project that uses an Access 97 Table.  I display it in a
DBgrid control.  There are several of the fields that contain times and
dates.  How do I format the field in the DBgrid to show just the time or
date and not the whole DateTime value.  The whole value makes the difficult
to work with.
>
> Thanks in advance
>
> llonghur
Technical Details
Message-ID: <41527799$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41515fcd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,fc0ac9717cf62093
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41515fcd$1@newsgroups.borland.com>
Subject: Re: Formatting Date/Time Fields in DBgrid
Date: Thu, 23 Sep 2004 11:13:29 +0400
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <41527799$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095923609 213.234.218.42 (23 Sep 2004 00:13:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail