format date on emails | Community
Skip to main content
Level 2
Jan 1, 2020 12:47 PM UTC
Solved

format date on emails

Hi,

 

I have a very common scenario where i need to display a BirthDate on an email. In my profile schema i have birthdate field of date datatype with a value lets say 06/30/2001(mm/dd/yyyy). But when email renders, it is displayed as 

Fri Jun 29 2001 19:00:00 GMT-0500 (EST).

So if we notice..what is happening here is 06/30/2001 is being considered as Sat Jun 30 00:00:00 GMT and being converted into EST time. 

How is that possible? what needs to be corrected?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vikashg34827223Accepted solution
Level 2
Jan 15, 2020 3:03 AM UTC

It was resolved using formatDate function.

2 replies

vikashg34827223AuthorAccepted solution
Level 2
Jan 15, 2020 3:03 AM UTC

It was resolved using formatDate function.

Translate
Level 2
Jan 15, 2020 3:02 AM UTC
This was resolved using formatDate function.
Translate