- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 07:25 AM
Is there a way to change a date field to a format of MMMM yyyy on a notification at all?
Many thanks,
Dan
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 09:31 AM
Try the below script and see if it works
var cdt = new GlideDate();
cdt.setValue(current.YOUR_DATE_FIELD);
cdt.getByFormat("MMMM YYYY")
the script only works for date field not date/time field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 08:14 AM
Notification date time follows the format of user context under which notifcation is fired, there is no easy way to do it OOB.
If you have to do, you might want to write your own script to perform this conversion
Note: Please mark reply as correct / helpful if it has answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 08:51 AM
Thanks for the reply,
I have tried several notification email scripts, but with no luck - are there any resources that you are willing to share that might point me in the right direction?
Cheers,
Dan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2019 09:31 AM
Try the below script and see if it works
var cdt = new GlideDate();
cdt.setValue(current.YOUR_DATE_FIELD);
cdt.getByFormat("MMMM YYYY")
the script only works for date field not date/time field