FILE DATE

I Need to post the date of the files for which I have links to?  Example

File          Last Updated on

file1           11/1/99
file2           11/2/99

The file list is hyperlined to to actual file for loading.
arcookAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
joejansConnect With a Mentor Commented:
In ASP:

  Set fileObject= CreateObject("Scripting.FileSystemObject")
  Set theFile = fileObject.GetFile(file_location)
Date_Created = theFile.DateLastModified

There you go! Date_Created will be the file date of any file you want.



0
 
Iceblink13Commented:
Try inserting this into your HTML

<script language="JavaScript"><!--
var sdate
sDate = document.lastModified
document.writeln("Updated: ");
document.write(sDate);
// --></script>

HTH
0
 
arcookAuthor Commented:
No Good?  This dosn't do anything for me. Thanks anyway
0
All Courses

From novice to tech pro — start learning today.