Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Converting date on Tsearchrec.

Posted on 1998-02-11
2
Medium Priority
?
421 Views
Last Modified: 2010-04-04
Hi,
 
     I can't seem to find a simple way to extract the date from TSearchrec.date. In other words, the date is returned as a large number, and the normal date conversion functions don't seem to work with this. There must be a simple solution to this that I am overlooking?  I simply want to be able to put it in a caption in a date format (10/26/97 for example).
          Thanks a bunch.
0
Comment
Question by:jexd99
2 Comments
 
LVL 2

Accepted Solution

by:
Waldek earned 150 total points
ID: 1359035
You may try this. You have a FileName and use this construction, where Result is type System.TDateTime. See Borland Example FilManex in demos
 Result := FileDateToDateTime(FileAge(FileName));

0
 

Author Comment

by:jexd99
ID: 1359036
Waldek,

   This got me in pointed in the right direction.  I ended up doing exactly as specified, and then put that in a datetostr function so I could place it in a caption.  It seems like their must be a better solution than using 3 functions to accomplish this, but the important thing is that it works. :)    
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question