- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 09:11 AM
HI
Is there an easy to insert today's day and date into the body of a notification? Format will be Tuesday, September 27, 2016
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 10:33 AM
Hi Jack,
"Easy" is a relative term to this crowd. You can do it with a fairly simple mail script. If you're using the v2 mail format, create a notification script.
template.print(gs.nowDateTime());
Save it with a name like 'current_date_and_time'
Call it from within your mail notification like this:
${mail_script:current_date_and_time}
Format will default to the system default. If you want to change format, you can extend the script using the GlideDateTime object and create your own.
Scripting for Email Notifications - ServiceNow Wiki
Email Notifications - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 10:33 AM
Hi Jack,
"Easy" is a relative term to this crowd. You can do it with a fairly simple mail script. If you're using the v2 mail format, create a notification script.
template.print(gs.nowDateTime());
Save it with a name like 'current_date_and_time'
Call it from within your mail notification like this:
${mail_script:current_date_and_time}
Format will default to the system default. If you want to change format, you can extend the script using the GlideDateTime object and create your own.
Scripting for Email Notifications - ServiceNow Wiki
Email Notifications - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 09:06 AM
This does not work for quick messages. We need a way to simply at today's date to quick messages.