How to convert this Real time emailer code in "<%= formatDate(rtEvent.ctx.balance_date, "%2M/%2D/%4Y", "Etc/GMT")%>" in the AJO | Community
Skip to main content
Level 2
November 18, 2024
Solved

How to convert this Real time emailer code in "<%= formatDate(rtEvent.ctx.balance_date, "%2M/%2D/%4Y", "Etc/GMT")%>" in the AJO

  • November 18, 2024
  • 1 reply
  • 438 views

How to convert this Real time emailer ACC code "<%= formatDate(rtEvent.ctx.balance_date, "%2M/%2D/%4Y", "Etc/GMT")%>" in the AJO?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mohan_Dugganab

You can use it on the following lines 

{% let d = formatDate(toDateTime(<balance_date>, "Etc/GMT"),"MM/dd/YYYY") %} {{d}}

https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/dates#format-date 

 

 

1 reply

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
November 18, 2024

You can use it on the following lines 

{% let d = formatDate(toDateTime(<balance_date>, "Etc/GMT"),"MM/dd/YYYY") %} {{d}}

https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/dates#format-date