Need to set date and time variable value in catalog task short description.

varma2
Mega Sage

Hi all,

 

I need to set a Date and Time variable value in the Catalog Task Short Description using Flow Designer. However, when I try to do this, the time shown in the short description is converted to UTC (the ServiceNow server time zone) instead of showing the user's selected time zone.

I want the short description to display the date and time in the user's time zone, not in UTC.

Please suggest.

 

Thank you all.

3 REPLIES 3

Maja Katarina
Tera Expert

If it's only to be used in a string format you can use the transform function like this. 


MajaKatarina_0-1750065072799.png

 

Hope this helps!

Ankur Bawiskar
Tera Patron
Tera Patron

@varma2 

please use getDisplayValue() on that date/time object while setting the value using f(x) inline script

AnkurBawiskar_1-1750065597875.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@varma2 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader