Timezone conversion to EST

Certified Associate Developer

Hi, I've been trying to convert datetime from any set time zone to ET. Like, if in my profile settings I've time zone set as GMT, I'm using the below code, and its working fine for GMT to ET conversion, but if I'm going with MDT or IST, it's not returning the current time as per ET. Does any one happen to know how I could achieve this conversion from all time zones to EST ?

datetext(
local(
ri!datetime,
"America/New_York"
),
"MM/dd/yyyy hh:mm a"
) & " ET"

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data