How can I get the date of when a file was created.
Printable View
How can I get the date of when a file was created.
I think the function is GetFileDateTime or something like that.
You can use the FileSystemObject which is part of the scripting runtime, ie add a reference to Microsoft Scripting Runtime.
You can also use, DateLastModified and DateLastAccessed among others.VB Code:
Dim fso As FileSystemObject Set fso = New FileSystemObject Debug.Print fso.GetFile("myfile.dat").[B]DateCreated[/B]
Cheers
Sweet, thanks.