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

Anand Shukla
Mega Guru

Hello Ankur,

Can you please explain where you need this output in a client script or server script. What is your business requirement?

var a = g_form.getValue('sys_updated_on');


 

Thanks 

Anand

If you want to use in Client side 

Use :  

 

var a = g_form.getValue('sys_updated_on');

alert(a);

 

If on the server side :

You can use like current.sys_updated_on OR whatever the variable you have defined using that.

 

Mark it helpful and Correct.

Thanks

Anand Shukla

Community Alums
Not applicable

Hi Ankur,

Where you want this output? what is your Business case?

Community Alums
Not applicable

We want this in mail script ,sending the same in notification.