Return to Snippet

Revision: 29636
at August 2, 2010 17:58 by icebob


Initial Code
function GetFileLastModDate(filename: string): TDateTime;
var
  fileDate: integer;
begin
  Result := 0;
  fileDate := FileAge(filename);

  // Did we get the file age OK?
  if fileDate > -1 then
    Result := FileDateToDateTime(fileDate);
end;

Initial URL


Initial Description


Initial Title
Get file last modified timestamp

Initial Tags
date, file

Initial Language
Delphi