DelphiFAQ Home Search:
General :: Programming :: Delphi
General Delphi related information.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Recommended links on this topic:
Featured Article

Get a file's date time stamp

Use this function to get a file's date and time stamp as a string:

function GetFileDate(TheFileName: string): string;
 var
   f: integer;
 begin
   f := FileOpen(TheFileName, 0);
   try
     Result := DateTimeToStr(FileDateToDateTime(FileGetDate(f)));
   finally
     FileClose(f);
   end;
 end;
 

Generated 4:01:47 on Oct 20, 2019