Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

Time Zone feature in Format date function not working for "EST"

Avatar

Level 2

Hi Team,

I want to get the dateTime of EST in one variable but whenever I use EST in format date function it provides me CST Time.

Can anyone please help me to get EST time.

Below is the screenshot of the same.

harshalp2212386_0-1655122605952.png

The same when I use "UTC" , it works and provide me UTC Time.

Thanks in Advance!!

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi,

Pass the value for TimeZone as "America/New_York".

Ssb_94_0-1655136665661.png

Refer to this document Format Date , which talks about timezone values to be configured. It is available in Xtk:Common Schema under TimeZone Enumeration

Thanks,

 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 7

Hi,

Pass the value for TimeZone as "America/New_York".

Ssb_94_0-1655136665661.png

Refer to this document Format Date , which talks about timezone values to be configured. It is available in Xtk:Common Schema under TimeZone Enumeration

Thanks,

 

Avatar

Community Advisor

Hi @harshalp2212386 ,

 

Use below code to get correct timeZone:

var dt= formatDate(getCurrentDate(), "%2D/%2M/%2Y %02H:%2N:%02S", "America/New_York")

 

Thanks,

Jyoti