How to fetch time just time with timezone from sys_updated_on

- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 04:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:00 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 04:49 AM
Hi Ankur,
Where you want this output? what is your Business case?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:29 AM
We want this in mail script ,sending the same in notification.