Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to add 2 Business Days to current Date?

Zod
Giga Guru

Hi,

I need to add 2 Business Days (just skipping Saturday / Sunday does not work)to current DATE (not DateTime).

Need to leverage standard SLA schedule of business days ... within a scripts .. so I just have new GlideDate() and 2 and require the new Date based on real business days (no public holidays ..).

BIG THANK YOU!

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi,

Refer to this article where I have shared sample code on how to add business days.

https://community.servicenow.com/community?id=community_article&sys_id=df6464c9db1ed4909e691ea668961...

Mark the comment as a correct answer and also helpful if this has helped to solve the problem.

View solution in original post

2 REPLIES 2

asifnoor
Kilo Patron

Hi,

Refer to this article where I have shared sample code on how to add business days.

https://community.servicenow.com/community?id=community_article&sys_id=df6464c9db1ed4909e691ea668961...

Mark the comment as a correct answer and also helpful if this has helped to solve the problem.

Will try - thnx. Will mark it correct if it does!