Validation for Date up to no less than 2 Future Business Days

ConnorServiceNo
Tera Contributor

Hello Everyone,

I have been tasked with creating a script on a catalog item that will validate if a selected date is no less than 2 future business days from the current date. Since this needs to take business days into account weekends should be excluded. From what I understand this will require a combination of both a client script and a script include. How would I go about doing this? I have seen other examples on the community but none that fit my current needed example. Thank you.

3 REPLIES 3

Ct111
Giga Sage

Hello, I found the exact blog that can serve your purpose check it fully I hope it helps

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

 

Mark my Answer as CORRECT and Helpful if it helps

Hello,

This article provides info on how to restrict a date field from selecting weekends, but this does not help me with restricting a user from selecting a date that is less than 2 days from the future.

Check this I hope it helps: https://community.servicenow.com/community?id=community_question&sys_id=23020be9db98dbc01dcaf3231f9619c2