$fdatec, $fdatem functions
The $fdatec and $fdatem functions return the created or modified date of the passed-in path in the standard internal format yyyymmdd: 4-digit year, 2-digit month, 2-digit day of the month. If path is empty or refers to a non-existing file or folder, the result is an empty string. The date can be used with other date-related functions such as $datediff, $datelocal, and others.
If the file in question was installed by InstallMate, then:
- The Created date of the file is the date of its installation.
- The Modified date of the file is the date of its original source file, unless the file has been modified since installation.
Note: The file's date is returned as the date in the local timezone. This may cause small differences if you compare it with dates such as BuildDate that may have been set in a different timezone.
Tip: If you want to compare file dates, then other functions such as $fage and $ftime might be more convenient.
All parameters may contain symbolic references; these are resolved before the function is applied. See Examples below.
- File or folder path of which to return the created or modified date
Here are some usage examples for this function:
- An expression that returns the Modified date of the file in question as yyyymmdd.
- An expression that returns the file's Modified date formatted according to the local conventions.