Expand my Community achievements bar.

Adobe Journey Optimizer Community Lens 7th edition is out.

How to get the yesterday date in AJO?

Avatar

Level 1

How to get the yesterday date in AJO?

2 Replies

Avatar

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...