Inno Setup Preprocessor: GetFileDateTimeString


str GetFileDateTimeString(str, str, str, str)


The function 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, third and fourth parameters denote the format string, DateSeparator and TimeSeparator parameters as explained in the GetDateTimeString topic.


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