|
-
September 21st, 1999, 05:05 AM
#1
Formatting dates in MSFlexGrid
Hello!
I've used DBGrid for displaying results of a query from an Access database. Now I need to use for this purpose MSFlexGrid. I made all changes in code, but in date fields MSFlexGrid displays dates in date + time format. I failed to find how can I change format of these fields either in MSFlexGrid or in query. Can somebody suggest a solution?
Thank you in advance,
Jack.
-
September 21st, 1999, 05:29 AM
#2
Use Format()
One of my old replies (check it):
http://www.codeguru.net/bbs/wt/showp...age=0&Limit=25
Michael Vlastos
Automation Engineer
Company Modus SA
Development Department
-
September 21st, 1999, 05:58 AM
#3
Re: Formatting dates in MSFlexGrid
Jack,
To format any date in msflexgrid use the following statement - (Modify as per your requirement please)
format(msflexgrid1.textmatrix(r,c),"dd-mm-yyy")
where r,c are row and columns which can be obtained.
There are several date formats
"dd-mm-yy" may generate 23-9-99
"dd-mmmm-yy" may generate 23-September-99
"dd-mmm-yyyy" may generate 23-sep-1999
Santulan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|