Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips


#46: How can I read a date/time of file's creation?

If you want to receive a datetime of the specified file, then you must to call a FileAge function and convert the returned value using the FileDateToDateTime function into a TDateTime value:

function GetFileDateTime(FileName: string): TDateTime;
var intFileAge: LongInt;
begin
  intFileAge := FileAge(FileName);
  if intFileAge = -1 then
    Result := 0
  else
    Result := FileDateToDateTime(intFileAge)
end;


Published: November 26, 1999

See also
 
Paradox Viewer
DBISAM Password Recovery
Viewer for TNEF-files (winmail.dat)
Metafile Convert
ABA Database Convert
dBase Viewer
SMMsg suite
Paradox to Text converter
SMImport suite
Paradox Password Recovery
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2025, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport/SMImport suites