Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

convert date time into local timezone

Malaya
Giga Expert

I am pulling date from a change request table in notification script. the date time is converting into GMT which is throwing off my date/time for the change request.. how to convert the date time into local time zone to get the correct value .

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Use getDisplayValue();



current.<date field_name>.getDisplayValue();


View solution in original post

10 REPLIES 10

Priya75
Tera Contributor

Hi All,

i am facing the same issue, i have a notification with which is in EDT when i preview it but the time that we get in email notification is in GMT.. i want to convert it according to user's Time zone.Could you please help me in this ..

$(appointment.start} is the field that i am using in the notification