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

Display date in yyyy/mm/dd format

yash71029733
Level 3
Level 3

Hi, we have a field in our table that we want to display in the yyyy/mm/dd format in the email. Can anyone please guide me the right syntax to display the field value in this format please. Thanks

1 Accepted Solution
Jean-Serge_Biro
Correct answer by
Community Advisor
Community Advisor

Hi Yash,

Please use the formatDate API function in the Html source tab, and put your Javascript personalisation, such as <% formatDate(yourTargetDataFielddate, "%4Y/%2M/%2D") %>

http://docs.campaign.adobe.com/doc/AC/en/jsapi/f-formatDate.html?hl=formatdate

Regards
J-Serge

View solution in original post

0 Replies
Jean-Serge_Biro
Correct answer by
Community Advisor
Community Advisor

Hi Yash,

Please use the formatDate API function in the Html source tab, and put your Javascript personalisation, such as <% formatDate(yourTargetDataFielddate, "%4Y/%2M/%2D") %>

http://docs.campaign.adobe.com/doc/AC/en/jsapi/f-formatDate.html?hl=formatdate

Regards
J-Serge

View solution in original post

yash71029733
Level 3
Level 3

Thanks so much for your response J-Serge! It worked!!