Time Zone feature in Format date function not working for "EST" | Community
Skip to main content
Level 2
June 13, 2022
Solved

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

  • June 13, 2022
  • 2 replies
  • 1501 views

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.

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

Thanks in Advance!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SurabattulaSr

Hi,

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

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,

 

2 replies

SurabattulaSrAccepted solution
Level 6
June 13, 2022

Hi,

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

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,

 

Level 2
June 14, 2022

Hi @surabattulasr ,

Thank you so much!!

It solved the problem.

Jyoti_Yadav
Level 8
June 14, 2022

Hi @harshalp2212386 ,

 

Use below code to get correct timeZone:

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

 

Thanks,

Jyoti

Level 2
June 14, 2022

Yeah it's a correct solution. Thanks Jyoti