- 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:34 PM
Thanks for all the suggestions! This worked for me to show the date:
gs.nowDateTime().split(' ')[0]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2021 03:24 AM
Hello Everyone,
My requirement is to display only the yesterday's date in the email subject of the report.
Can someone advise ?
Thanks
Ramachandran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 11:02 AM
In the subject line put
javascript:"Yesterday = " + gs.yesterday('').split(' ')[0]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 06:24 AM
Same here, can someone help with adding previous days date in the subject line ex.. MM/(current date -1)/YY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 11:02 AM
In the subject line put
javascript:"Yesterday = " + gs.yesterday('').split(' ')[0]