Description
Returns a date that indicates the date and time when a file was created or last modified .
Syntax
FileDateTime(pathname)
The pathname named argument is a string expression that specifies a file name — may include directory or folder, and drive.
See Also
FileLen Function, GetAttr Function.
Example
This example uses the FileDateTime function to get the date and time when a file was created or last modified. The format of the date and time displayed is based on the locale settings of your system.
' Assume TESTFILE was last modified on February 12 1993 at 4:35:47 PM. ' Assume United States/English locale settings. MyStamp = FileDateTime("TESTFILE") ' Returns "2/12/93 4:35:47 PM".