Solved

Converting date on Tsearchrec.

Posted on 1998-02-11
2
418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month5 days, 7 hours left to enroll

627 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