Returns a Variant (Date) value that indicates the date and time
when a file was created or last modified.
Syntax
FileDateTime(path) |
The required path argument is a string expression that specifies a file name. The path may include the directory or folder, and the drive.
This example uses the FileDateTime function to determine the date and
time a file was created or last modified. The format of the date and time displayed
is based on the locale settings of your system.
Dim MyStamp ' Assume TESTFILE was created on February 12, 1993 at 16:35:47. ' Assume Russian locale settings. MyStamp = FileDateTime("TESTFILE") ' Returns"12.02.93 16:35:47". |
See Also |
FileLen Function, GetAttr Function , VarType Function |