🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Why have I got wrong record from this table?

#409
From: Clayton Arends
Date: Thu, 02 Nov 2006 17:15
17 lines
1476 bytes
> 2006-11-20 12:12:31
> 2006-11-20 12:12:31

I see no difference in these two date values.  What did you mean to type?

To control the display format of a field you can find the field in the 
dataset and then modify the 'DisplayFormat' property to your liking.

For instance to specify that the display format should be "2006/11/20":

  TDateTimeField* field = dynamic_cast <TDateTimeField*>
    (DataSet1->Fields->FieldByName("SomeDateField"));
  if (field)
    field->DisplayFormat = "yyyy/mm/dd";

HTH,
- Clayton 
Technical Details
Message-ID: <454a27aa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4549a412@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,b24adba74fe8905
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Clayton Arends" <nospam_claytonarends@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4549a412@newsgroups.borland.com>
Subject: Re: Why have I got wrong record from this table?
Date: Thu, 2 Nov 2006 09:15:22 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 71.83.251.192
Message-ID: <454a27aa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1162487722 71.83.251.192 (2 Nov 2006 09:15:22 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail