Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
SOLVED

How to set up the day countdown in the subject line

Avatar

Level 2

I would like to setup the countdown in the subject line, may I know which function should use? 

 

i am using below syntax , but showing error

{%= dateDiff("d",''currentTime' 00:00:01'','2024-07-31 23:59:59') %}

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@kH32323 Try along these lines and format it accordingly,

{% let d=now %}

{% let d1=2024-05-05T10:15:30Z %}

{%= dateDiff(d,d1) %}

Thanks, Sathees

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@kH32323 Try along these lines and format it accordingly,

{% let d=now %}

{% let d1=2024-05-05T10:15:30Z %}

{%= dateDiff(d,d1) %}

Thanks, Sathees