Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return the last date modified of a file

Status
Not open for further replies.

tbarone

Programmer
Aug 1, 2001
13
0
0
US
I do not quite understand the Get attributes command in Delphi. How do I get the last date modified from a file and bring it into Delphi?

Thanks,
Tony
 
Try using the FileAge and FileDateToDateTime functions:

FileDate := FileDateToDateTime(FileAge('C:\MyFile.txt'));

-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top