Returns a Date value that indicates the date and time a file was written to. The My feature gives you better productivity and performance in file I/O operations than FileDateTime. For more information, see GetFileInfo
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
- Type: System.String
Required. String expression that specifies a file name. PathName may include the directory or folder, and the drive.
Return ValueType: System.DateTime
Date value that indicates the date and time a file was created or last modified.
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 the system.