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.

How to calculate datediff in days excluding weekends

shashankverma05
Tera Contributor

Hi Guys could you help me to get the datediff by excluding weekends.

4 REPLIES 4

marcguy
ServiceNow Employee
ServiceNow Employee

you need to do it using a different function to include a schedule that would be 24x5. (Monday-Friday).


Calculate Duration Given a Schedule - ServiceNow Wiki


Useful Scheduling Scripts - ServiceNow Wiki


sumeet_n
Mega Guru