Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to Get Date a File was Modified

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
I need to get the date that certain files were last modified, the date that the folder would show. I have the complete path in a string variable. I need the date in any usable format (string, datetime, numberic (<g>), whatever).

How?

TIA

Shanachie
 
try
[tt]
if file(yourstring)
= adir(gaDirAray,yourstring)
filedate = gaDirAray(1,3)
? filedate
endif
[/tt]
 
Shanachie.....

The fdate() function returns the last modification date of a file. See MSDN help for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top