Folder.DateCreated

JScript3.0+Syntax

							folder.DateCreated
						

Description

The DateCreated property of an instance of the Folder object is used to get the date when the folder was created.

Example

Listing 9.98 is run in an Internet Explorer browser, and it contains a single button. When the button is clicked, an alert box pops up displaying the creation date of the folder specified.

Listing 9.98 Using the DateCreated Property
 <html> <body> <script language="JScript"> <!-- Hide function get(){ // Create a FileSystemObject object var myObject = new ActiveXObject("Scripting.FileSystemObject"); // Create a Folder object var myFolder = myObject.GetFolder("c:\\Temp"); // Display the creation date of the folder alert (myFolder.DateCreated); } // End ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.