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 get the yesterday date in AJO?

Avatar

Level 2

How to get the yesterday date in AJO?

1 Accepted Solution

Avatar

Correct answer by
Employee

If you need this for personalization in the messages, either setDays function or the following snippet can be used 

 

{% let yest = currentTimeInMillis() - 86400000 %}
{% let computedDate = toDateTimeOnly(yest) %}
{%= formatDate(computedDate, "dd/MM/yyyy") %}

 

Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio...

 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

If you need this for personalization in the messages, either setDays function or the following snippet can be used 

 

{% let yest = currentTimeInMillis() - 86400000 %}
{% let computedDate = toDateTimeOnly(yest) %}
{%= formatDate(computedDate, "dd/MM/yyyy") %}

 

Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio...

 

 

Avatar

Administrator

Hi @NiteshSingh,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!



Sukrity Wadhwa