email delivery template....change date format | Community
Skip to main content
acc_acs
Level 3
May 22, 2017
Solved

email delivery template....change date format

  • May 22, 2017
  • 3 replies
  • 4368 views

I need in my delivery template change a date format from "dd/mm/yyy" to "dd < month write in words> yyyy"

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 Kishore_Padamata

<%= formatDate(new Date(), "%2D %Bl %4Y") %>

Displays 22 May 2017

this works in case of you are trying to format date from Date Object.

3 replies

Kishore_Padamata
Adobe Employee
Kishore_PadamataAdobe EmployeeAccepted solution
Adobe Employee
May 22, 2017

<%= formatDate(new Date(), "%2D %Bl %4Y") %>

Displays 22 May 2017

this works in case of you are trying to format date from Date Object.

acc_acs
acc_acsAuthor
Level 3
May 22, 2017

Tnaks a lot, it's working! :-)

What's "%Bl" means? Can I change the language of month? For example instead May in english, I'd like write in french (mai) or spanish (mayo). Is it possible too?

Level 3
July 22, 2020
I too would like to know the answer to this if you have one.
Kishore_Padamata
Adobe Employee
Adobe Employee
May 23, 2017

Here is the manual, i was referring to

and Formatting

I am not sure, if you can use "Dictionary" strings for translating texts in deliveries. If you can't, you can define and call your language-specific JS function within delivery.