FileDateTime

This method returns a variant (Date) that indicates the date and time when a file was created or last modified.

Syntax

filesystem.FileDateTime(pathname)

Parameters

filesystem
Reference to a FileSystem control.
pathname
Required. String expression that specifies a file name. The pathname can include a directory or folder.

Return Value

Returns the date the file was last modified.

Remarks

FileDateTime returns an error if the new file does not exist.