Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Show Due Date as Business days in Tasks/To-Dos in the Portal

arijtis
Tera Expert

I have a requirement to show the Due Date for the HRC records which are currently in Awaiting Acceptance state.

 I have created a BR to populate the Due date in the HR Case which is showing as 5 business days correctly but in the portal it's showing as 7 days, that means its calculating all the days including weekends. 

 

Is there any way to change it to show as business days only?

Can someone help on this pls?

 

arijtis_1-1728475765935.png

 

Thanks,
Arijit

2 REPLIES 2

miro2
Mega Sage

Hi @arijtis  
There was a similar thread this week. Please have a look here.
https://www.servicenow.com/community/hrsd-forum/auto-populate-due-date-for-hr-case-with-5-business-d...
Hope this solution helps. If not, please share your script so we can take a look.

Yes, I have referred the code shared there but its considering weekends as well and updated the due date field with weekend.