Dynamic Dates And Times With Variables

Within a custom text button you can add a dynamic date and/or time within the phrase.

The format is {{ date:"dd-MM-yyyy HH:mm" }}  using the Unicode date format patterns. There's a great site to test out the formats at NSDateFormatter.com.

Examples:

Wednesday, Nov 6, 2019 {{ date:"EEEE, MMM d, yyyy" }}
2019-11-06T07:19:11+0000 {{ date:"yyyy-MM-dd'T'HH:mm:ssZ" }}
Wed, 6 Nov 2019 07:19:11 +0000 {{ date:"E, d MMM yyyy HH:mm:ss Z" }}

Using it in a phrase:

For example you could create a phrase:

Today is {{ date:"EEEE" }} and the month is {{ date:"MMM" }}

Which would print our something like:

Today is Wednesday and the month is Nov


Offsetting the time:

You can offset the time in hours:

{{ datehouroffset:"EEEE, MMM d, yyyy", 24 }}

or use a negative to go to the past

{{ datehouroffset:"EEEE, MMM d, yyyy", -8 }}

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us