Hi @Teodor - Iām implementing this. Iām using the following code:
{{var1.datetime.timeUntil(end_date, 'true')}}
This works great, but has an output of: hours, minutes and seconds e.g.:
240:51:52
If I try to format it, it fails and wonāt render at all.
{{var1.datetime.timeUntil(end_date, 'true'.formatDate('dd-MM-yyyy HH:mm:ss'))}}
If I try using the structure of your code above e.g.
{{(((var1.datetime.timeUntil(end_date, 'true')) / 60) % 60).floor()}}
I just get NaN indicating I have something wrong here.
I have tried combining multiple formatters to get the desired output e.g.
{{(((var1.datetime.secondsUntil(end_date))/ 86400) % 60).floor()}}d {{(((var1.datetime.secondsUntil(end_date))/ 3600) % 24).floor()}}m {{(((var1.datetime.secondsUntil(end_date)) / 60) % 60).floor()}}s left
This works - but then the counter does not count down live for some reason.
This is the output Iād like to get:
22d 54m 45s left
Any help appreciated.