FILEDATETIME(pathname)

Returns the date and time when a file was created or last modified (Date).


pathnameThe full pathname of the file you want to examine (String).

REMARKS
* The "pathname" may include a directory and drive.
* You can use the FILELEN function to return the length of a file in bytes.
* The equivalent .NET function is Microsoft.VisualBasic.FileSystem.FileDateTime
* For the Microsoft documentation refer to learn.microsoft.com

Debug.Print FileDateTime("C:\text.txt")    '= "21/11/14 14:08:23 PM"  

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited Top