How to Format the date values in ServiceNow reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 02:32 PM
Hi I would like to format the date values from i.e. Monday/2014 to "Mon-01-2014". In this possible in ServiceNow reporting. Would appreciate the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 07:51 PM
Hi, 1 option would be to use custom report 'function' fields, this effectively creates a new field on your reporting table, allowing you to configure the content using a limited sets of scripting type functions.
Another option is to create a new field on the table and set the content via BR during the before insert\update process.
They both provide the same results...more/less,
With the report function being easier for some scenarios as it doesn't require an admin user and scripting.
However depending on requirements, a BR type scripted solution will allow you to leverage a wider range of code\functionality and reference data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 03:26 AM
unfortunately the "function" field doesnt seem to offer any "format" options...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 11:17 PM
Hi @Muradz1234567 ,
As @Tony Chatfield1 have mentioned, there are several possibilities to leverage function fields, new custom fields. Though I would recommend to do this, "just" to get another visualization. Could it be that you should change the condition on the report instead and by that narrow down the report?
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 11:35 AM
How would you go about if going for creating function in the report designer with the limited functions.