IFile.GetCreationTime

Syntax

GetCreationTime(FileName: String): DateTime;

Parameters

FileName — path and name of a file, creation date and time of which must be found out.

Description

The GetCreationTime method returns date and time of file creation.

Example

Sub Main;

Var

d: DateTime;

Begin

If File.Exists("c:\New_folder\1.txt") Then

d:=File.GetCreationTime("c:\New_folder\1.txt");

End If;

End Sub Main;

After executing the example, the "d" variable contains creation date and time of the 1.txt file if it exists.

See also:

IFile