Solved

Converting date on Tsearchrec.

Posted on 1998-02-11
2
412 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 50 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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