Skip to main content
Level 2
Nov 18, 2024 2:14 PM UTC
Solved

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

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.
Mohan_Dugganab
Mohan_DugganabAccepted solution
Adobe Employee
Nov 18, 2024 2:54 PM UTC

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
Nov 18, 2024 2:54 PM UTC

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 

 

 

Translate