FileSetLastModified

For the given file, set the last modification date

FileSetLastModified( file, date )

Returns: void

Argument Description
file
any, required

file path

Alias: filePath, source, path

date
date, required

last modified date

Examples

filesetlastmodified(expandPath("./testcase.txt"),#dateAdd("d", 2, now())#);
writeDump(getfileinfo(expandPath("./testcase.txt")).lastmodified);

See also