Link to home
Start Free TrialLog in
Avatar of MarcGraff
MarcGraffFlag for United States of America

asked on

Getting the "date modified" of a file

How would one get the "date modified" date of a file?

   - Marc
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Avatar of vinnyd79
vinnyd79

Private Sub Command1_Click()
MsgBox FileDateTime("C:\Somefile.txt")
End Sub
Hey Marc!

This link will provide you with code to get the date modified as well:

http://www.mvps.org/vbnet/code/fileapi/filedatetime.htm
ASKER CERTIFIED SOLUTION
Avatar of D2K
D2K

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial