Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript File Object DateCreated Property

Returns the date and time that the specified file was created. Read-only.

Syntax: JScript File Object DateCreated Property

object.DateCreated

Arguments: JScript File Object DateCreated Property

object

A File object.

Remarks: JScript File Object DateCreated Property

The following code illustrates the use of the DateCreated property with a file:

function ShowFileInfo(filespec)

{

var fs, f, s;

fs = new ActiveXObject("Scripting.FileSystemObject");

f = fs.GetFile(filespec);

s = "Created: " + f.DateCreated;

Response.Write(s);

}

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.