duration type should display only days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 11:13 PM
I have created a field 'same day closure' which calculates difference of closed_at and opened_at .
right now it is showing time also. I want to show only days count.
How to modify function ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 11:54 PM - edited ‎01-15-2024 11:57 PM
Hi,
To show only days count, configure the dictionary entry of Type field and change the Duration Values.
For more information please go through this Link.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0563750
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 01:20 AM
Below post could be helpful to you:
https://www.servicenow.com/community/developer-forum/convert-duration-field-into-day/m-p/1804894
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 01:24 AM
Hi,
Right click on the field and click on Configure Dictionary
On the attribute field add the value 'max_unit=days'
Ps, of there are more attributes then append the new value with a ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 02:15 AM
What should I select
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************