We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

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