November 13, 2000 - Probing the Last Modified Date | WebReference

November 13, 2000 - Probing the Last Modified Date

Yehuda Shiran November 13, 2000
Probing the Last Modified Date
Tips: October 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

To find out a file's last modified date, use the DateLastModified property of the File object. Here is a piece of script that will print the file's last modified date:

<SCRIPT LANGUAGE="JavaScript">
<!--
  myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
  file = myActiveXObject.GetFile("c:\\test.txt");
  alert(file.DateLastModified);
// -->
</SCRIPT>

You will get an alert box like this: