Inno Setup Preprocessor: GetFileDateTimeString

Prototype

str GetFileDateTimeString(str Filename, str DateTimeFormat, str? DateSeparator, str? TimeSeparator)

Description

Returns the date and time of the specified file as a string using the specified formatting.

The first parameter is the file name. The second parameter denotes the format string. The third and fourth parameters are optional and denote the DateSeparator and TimeSeparator parameters as explained in the GetDateTimeString topic.

Example

#define MyFileDateTimeString GetFileDateTimeString('myfile.txt', 'dd/mm/yyyy hh:nn:ss', '-', ':');

See also

GetDateTimeString