DateCreated Property

 

Description

 

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

 

PowerBASIC Syntax

 

PROPERTY GET DateCreated () AS DOUBLE

 

Return Value

 

DOUBLE. The date and time of the folder creation.

 

Example [PowerBASIC]

 

#INCLUDE "windows.inc"

#INCLUDE "scrrun.inc"

 

DIM fso AS IFileSystem

DIM pFolder AS IFolder

DIM dDateCreated AS DOUBLE

 

' Create an instance of the FileSystemObject

fso = NEWCOM "Scripting.FileSystemObject"

' Get a reference to the IFolder interface

pFolder = fso.GetFolder(UCODE$("C:\MyFolder"))

' Get the date in which the folder was created

dDateCreated = pFolder.DateCreated

' Convert the date to a formated string

DIM d  AS ASCIIZ * 64

DIM st AS SYSTEMTIME

VariantTimeToSystemTime dDateCreated, st

GetDateFormat %LOCALE_USER_DEFAULT, %DATE_SHORTDATE, st, BYVAL %NULL, d, 64 d, 64

MSGBOX "Date: " & d

 

Valid XHTML 1.0 Transitional