in: How to get create/last modified dates of a file in Delphi? i have found as get create/last modified/last access date/time of a un file, but for set this value in a file, what i can to do?
Thanks very much.
in: How to get create/last modified dates of a file in Delphi? i have
Share
Try the
SysUtils.FileSetDatefunction from the SysUtils unit, which internally call theSetFileTimeWinApi function.this funcion has two versions
The Age parameter is the Time to set. You must use the
DateTimeToFileDateto convert a TDateTime Value to the Windows OS time stamp.Like this