Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

email delivery template....change date format

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

Displays 22 May 2017

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

View solution in original post

0 Replies

Avatar

Correct answer by
Employee Advisor

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

Displays 22 May 2017

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

Avatar

Level 4

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?

Avatar

Employee Advisor

Here is the manual, i was referring to

1212030_pastedImage_0.png

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.