remove time stamp from email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 03:44 AM
Hi i am using the feild sys_created_on in my email notification but it includes the date and time .... As
2004-01-22 00:00:00 EST
but i want only the date not the time stamp as 2004-01-22 ....only for this email notification .
Please suggest how should i achieve this .it is urgent please help .
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 03:49 AM
Hi there,
Are you just displaying this in your notification for example?
You could set up a mail script, in which you could split(' ') sys_created_on, or do a new GlideDate(current.sys_created_on), or use setDisplayValue, etc..
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 03:49 AM
you can use email script here. try now.
var gd =new GlideDate(current.sys_created_on);
template.print("Date is"+ gd.getDisplayValue());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 02:57 AM
if i answered your query, kindly mark it as correct and close this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2020 10:53 AM
This didn't work for me. Tried using it within an email notification for Delegate (sys_user_delegate).