Visual Basic for Applications Reference

FileDateTime Function

See Also    Example    Specifics

Returns a Variant (Date) that indicates the date and time when a file was created or last modified.

Syntax

FileDateTime(pathname)

The required pathnameargument is a string expression that specifies a file name. The pathname may include the directory or folder, and the drive.