Returns the date a file was created.

Syntax

<oRef>.createDate(<filename expC>)

<oRef>

A reference to a File object.

<filename expC>

The name of the file to check. Wildcard characters are not allowed; you must specify the actual file name.

If you specify a file without including its path, dBASE Plus looks for the file in the current directory, then in the search path(s) you specified with SET PATH, if any. If you specify a file without including its extension, dBASE Plus assumes no extension. If the named file cannot be found, an exception occurs.

Property of

File

Description

createDate( ) checks the file specified by <filename expC> and returns the date that the file was created.

To get the date the file was last modified, use date( ). For the date the file was last accessed, use accessDate( ). To get the time the file was created, use createTime( ).