November 15, 2000 - Probing the File Creating Date | WebReference

November 15, 2000 - Probing the File Creating Date

Yehuda Shiran November 15, 2000
Probing the File Creation Date
Tips: November 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

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

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

Here is the alert box you will get: