FileDateTime Function
Syntax
FileDateTime(Name$)
Group
Description
Returns the date and time that the Name$ file is last changed as a Date value. If the file does not exist, a runtime error occurs.
Sandbox
Sandbox mode blocks this function.
Parameters
| Parameters | Description |
|---|---|
| Name$ | The path and name of the file. A path relative to the current directory can be used. |
Sub Main F$ = Dir$("*.*") While F$ <> "" Debug.Print F$; " "; FileDateTime(F$) F$ = Dir$() Wend End Sub