How to get the yesterday date in AJO? | Adobe Higher Education
Skip to main content
Level 2
July 1, 2024
Respondido

How to get the yesterday date in AJO?

  • July 1, 2024
  • 3 respostas
  • 772 Visualizações

How to get the yesterday date in AJO?

Este tópico foi fechado para respostas.
Melhor resposta por Mohan_Dugganab

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/personalization/functions/dates#set-days

 

 

3 Respostas

Mohan_Dugganab
Adobe Employee
Adobe Employee
July 3, 2024

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/personalization/functions/dates#set-days

 

 

Sukrity_Wadhwa
Community Manager
Community Manager
July 19, 2024

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