- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 01:21 PM
I have an existing scheduled report with a date in the email subject line. It is showing UTC date:
javascript:"Changes Approved On " + gs.now()
How would I change the code to show the local time? I can show local date/time using the following, but I do not want to include the date.
javascript:"Changes Approved On " + gs.nowDateTime();
Thanks!
Jessica
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 01:32 PM
Try gs.nowDateTime().split(' ')[1]
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 01:28 PM
Possibly add a to toString and replace to remove the date and replace it so it with "".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 01:30 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 01:32 PM
Try gs.nowDateTime().split(' ')[1]
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 06:40 AM
Sorry to jump on this post....
I've been forwarded to this post as I have a similar issue.
https://community.servicenow.com/community?id=community_question&sys_id=74ae6ae1db3bd380fff8a345ca96...
Any way I can show this gs.nowDateTime().split(' ')[1] so instead of current date and time it just shows last months name? E.g, January, February, March... Etc.