How to fetch time just time with timezone from sys_updated_on

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 04:31 AM
Hi Team,
I need to fetch time and date with timezone from "sys_updated_on" field
Suppose 'sys_updated_on' has a value "2022-03-21 10:30:16 PDT".
We require output as 2022-03-21 10:30 PDT.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:51 AM
Hello Ankur,
Please use the below code in your mail script as per your requirement and table which you want to use.
var gr = new GlideRecord('sys_user');
template.print(gr.getValue('sys_updated_on'));
Mark it helpful and correct
Thanks
Anand