Skip to main content
aaryan.1535
August 3, 2022
Question

Timezone conversion to EST

  • August 3, 2022
  • 3 replies
  • 0 views

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"

3 replies

stefanhelzle0001
Brainy
August 3, 2022

For which purpose? Appian manages timezones automatically in the background.

aaryan.1535
August 3, 2022

I'm having a read-only 'Request date' field (datetime) which registers the current time as per ET zone, not the current time as per my time zone set in profile settings. So if I'm filling the form with MDT (eg 9:45 AM rn) set as default time zone in profile settings, I should see current time as per ET (11:45 AM) in the request date field.

scarg
August 3, 2022

Aaryan, I strongly recommend you to take a look on this Appian playbook article:

Appian Community