How to fetch time just time with timezone from sys_updated_on

Community Alums
Not applicable

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

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