Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to get Local datetime on Function field

syamano
Tera Contributor

I created a function field that extracts only the date and time from the opened_at column as follows.

glidefunction:substring(opened_at, '12', '2')

 

However, the opened_at column is in UTC, I cannot obtain the correct value in the local datetime.
Is there a solution?

5 REPLIES 5

@syamano 

then it's not supported in function field.

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

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