GetCreationTime(FileName: String): DateTime;
FileName — a path and name of a file, creation date and time of which should be found out.
The GetCreationTime method returns date and time of a file creation.
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 this example, variable "d" contains creation date and time of a file 1.txt if it exists.
See also: