FileDate(
     path:path,
     [string:flags]
)
date

Arguments

path

Path of the file or folder.

flags

Optional. Optional flags.

Return value

The date (including time) of the specified file or folder.

Description

Directory Opus 13.22.4 and above.

Returns the timestamp of the specified file or folder.

By default, the modified time is returned, in local time.

The optional flags are:

aaccessed date
ccreated date
mmodified date (the default)
uUTC instead of local time

Example:

FileDate("C:\Program Files") as "d#yyyy-MM-dd t#HH.mm.ss"
--> 2026-04-14 09.21.49

FileDate("C:\Program Files", "mu") as "t#HH.mm.ss"
--> 07.21.49