Display date in yyyy/mm/dd format

Avatar

Avatar

yash71029733

Avatar

yash71029733

yash71029733

18-06-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jean-Serge_Biro

MVP

Avatar

Jean-Serge_Biro

MVP

Jean-Serge_Biro
MVP

18-06-2019

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

Answers (1)

Answers (1)

Avatar

Avatar

yash71029733

Avatar

yash71029733

yash71029733

20-06-2019

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