DIAdem Help

Property: DateCreated for Folder

  • Updated2024-09-12
  • 1 minute(s) read

Property: DateCreated for Folder

Specifies the folder creation date and time.

Set oDispatch = Object.DateCreated
ObjectFolder
Object with this property
oDispatchReturned object
Receives the creation date as variant value with the subtype date.

The following example displays various folder information:

Function ShowFolderInfo(sFolder)
  Dim fso, oMyFolder, sOutput
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFolder = fso.GetFolder(sFolder)
  sOutput = "Folder: " & oMyFolder.Name & VBCrLf
  sOutput = sOutput & "Created: " & oMyFolder.DateCreated & VBCrLf
  sOutput = sOutput & "Last Accessed: " & oMyFolder.DateLastAccessed & VBCrLf
  sOutput = sOutput & "Last Modified: " & oMyFolder.DateLastModified   
  ShowFolderInfo = sOutput
End Function

Log in to get a better experience