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

The 4th edition of the Campaign Community Lens newsletter is out now!
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
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

Avatar

Correct answer by
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

Avatar

Level 3

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