Name
DateCreated (File Object, Folder Object) —
Obj
.DateCreated
Synopsis
A date value that represents the date the file or folder was created. This is a read-only value controlled by the operating system.
Parameters
None
Example
<%
' Dimension local variables.
Dim fsoObject ' FileSystemObject.
Dim fdrObject ' Folder object.
Dim datCreated ' Date variable.
' Instantiate the FileSystemObject variable.
Set fsoObject = Server.CreateObject( _
"Scripting.FileSystemObject")
' Using the GetFolder method of fsoObject, initialize
' a Folder object
Set fdrObject = fsoObject.GetFolder("c:\Docs")
' Retrieve the date the folder was created.
datCreated = fdrObject.DateCreated
. . . [additional code]
%>
Notes
The value of this property indicates the date the file was created, not the date the file was written to the current drive.
Get ASP in a Nutshell, 2nd Edition 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.