Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Display date in yyyy/mm/dd format

Avatar

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

Avatar

Correct answer by
Level 10

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

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

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