Skip to main content
Documentation & User Guides | Fotoware

Reference of legacy date and time variables

 

This article describes legacy dynamic tags which exist for backward compatibility. It is not recommended to use these tags anymore, but they will remain available in future versions of FotoWeb. For new configurations, please use the tags listed in Reference of date and time variables instead. If your configuration already uses any legacy tags, the tags in the Replace with column in the table below can help you replace them with new, recommended versions.

These tags are available in metadata macros in actions only. They cannot be used in search expressions.

For general information about date/time tags, please see Reference of date and time variables and Dynamic variables.

Unless specified otherwise, all of these tags expand to local time. Some tags expand to universal time (UTC).

Tag

Format

Remarks

Example

Replace with

{{date}}

{{date.date}}

YYYYMMDD Expands to the current date in compact format 20230517 {{now.date}}
{{date.utcdate}} YYYMMDD Expands to the current date in universal time (UTC) in compact format 20230517 {{utcnow.date}}
{{isodate}} YYYY-MM-DDThh:mm:ss

Expands to the current date and time in ISO8601 format

2023-05-17T12:45:30 {{now.isodatetime}}
{{date.year}} YYYY Expands to the current year. 2023 {{now.year}}
{{date.month}} MM Expands to the number of the current month with at least 2 digits 05 {{now.month}}
{{date.day}} DD Expands to the current day of the month with at least 2 digits 07 {{now.day}}
{{time}}

hh:mm:ss or

hhmmss

Expands to the current time of the day.

If it is used to generate a file name, then the colons are omitted.

Otherwise (for example, if used in a metadata macro), the colons are included.

12:45:30

124530

{{now.time}}

{{time.hour}}

{{time.hour:FORMAT}}

hh

Expands to the current hour of the day in either 12-hour or 24-hour format with at least 2 digits.

See the description of the {{now.hour}} tag in Reference of Date/Time Tags for more information.

12

{{now.hour}}

{{now.hour:FORMAT}}

{{time.min}}

{{time.minute}}

mm Expands to the current minute of the hour with at least 2 digits 05 {{now.minute}}

{{time.sec}}

{{time.second}}

ss Expands to the current second of the minute with at least 2 digits 02 {{now.second}}