Hello,
this can be achieved using a text layer with a dynamic value
. Here is an example that will count down to the 20th of September 2023:
{
"type": "text",
"value": {
"left": {
"left": {
"left": "20230920T120000",
"right": "yyyyMMdd'T'HHmmss",
"transform": "parseDate"
},
"right": {
"context": "date",
"updateInterval": 1
},
"transform": "sub"
},
"right": "dd' Days 'HH' Hours 'mm' Minutes 'ss' Seconds'",
"transform": "formatDate"
}
}
Note, that in order for the value to automatically update every second the updateIntverval
has to be set to 1 or the desired update interval time in seconds.
For a full list of all contexts as well as transformation types and how to use them please refer to the "dynamic value" section in the Wiki.
Regards