Icon FileCreation

Unit: Internal

Available In: Server Applications

function FileCreation(const FileName: String): DateTime

The FileCreation function returns the creation date and time of the file input parameter. The return value is a DateTime value.

Information The specified file name should contain an absolute path. Relative paths are permitted, but they rely on the current working directory. The current working directory is a per-process setting and is not reliable in a multi-threaded setting like the web server.

Examples

X := FileCreation('C:\temp\test.html');  // X is 1604515489696, or '11/4/2020 1:44 PM'
Image