Access FileDateTime Function

Last updated: August 26, 2026.

The FileDateTime function returns the date and time when a file was created or last modified.

Syntax

FileDateTime(pathname)
ArgumentDescription
pathnameFull or relative path to an existing file

Examples

FileDateTime("C:\Reports\Sales.xlsx")
ModifiedAt: FileDateTime([FilePath])

The call raises an error when the file is missing or inaccessible. Validate trusted paths and handle errors; never build a filesystem path directly from untrusted input.

See Microsoft’s Access function reference for related expression functions.

admin

admin

Leave a Reply

Your email address will not be published.