duration type should display only days

Balakrishna_ABK
Tera Guru

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 ?

sdc.png

5 REPLIES 5

siraj5
Tera Contributor

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!

 

Amit Verma
Kilo Patron
Kilo Patron

Hi @Balakrishna_ABK 

 

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.

Anurag Tripathi
Mega Patron
Mega Patron

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 , 

 

-Anurag

Hi @Anurag Tripathi 

 

What should I select 

LearnNGrowAtul_0-1705400105534.png

 

*************************************************************************************************************
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]

****************************************************************************************************************