Solved

How can I find a files Modified Date

Posted on 2004-09-13
1
265 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
Comment Utility
ModDate = FileDateTime("MyFilespec")
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now