Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-19-2017, 06:14 AM
rmt rmt is offline
Senior Member
 
Join Date: Jun 2013
Posts: 245
Default Delphi5: Format Date Time Field of TClientDataset

Dear Expert,

I have a Tclientdataset with TDateTime Fields which I have assigned to a TwwDbLookupCombo. Now, I want to change the Display Format of those dates while displaying in lookup. Kindly help. Thanks in advance.

Regards,
__________________
Rmt
  #2  
Old 04-19-2017, 06:47 AM
rmt rmt is offline
Senior Member
 
Join Date: Jun 2013
Posts: 245
Default

the posted thread has been resolved after applying the below code on AfterOpen event of ClientDataset:

if (DataSet.Fields[0] is TDateTimeField) then
(DataSet.Fields[0] as TDateTimeField).DisplayFormat := DateMask;

Thanks..
__________________
Rmt
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.