Solved

How can I find a files Modified Date

Posted on 2004-09-13
1
268 Views
Last Modified: 2010-05-02
Hi All.

How can I find the date a file was last modified.  I have looked at getattr() and fileattr() but can't seem to find what I want.

I need something like:-

ModDate = Filename.ModifiedDate or
ModDate = getattr(filename, ModifiedDate)

But I'm sure it wont be quite that simple!

Cheers,
Shivermetimbers.
0
Comment
Question by:shivermetimbers
1 Comment
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 50 total points
ID: 12042297
ModDate = FileDateTime("MyFilespec")
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 216
Sending a email via excel using vba 6 96
Hide vba in gp 7 104
Recommendation vb6 to vb.net or others 14 174
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question