Date Validation to avoid selection of Weekends

abhiman
Tera Contributor

In my catalog item i have two fields start date and end date. My requirement is when the user the Start date then the End date should be auto- populated to the date after 5 days and also the selection should avoid the Weekends. Example:- if the start date is selected as 12.12.2023 then the end date should auto populated to 18.12.2023 (which is the fifth day from the selected start date) by avoid calculating the 16.12.2023(saturday) and 17.12.2023(sunday). Please help me with the correct approach to complete this requirement. 

 

Thanks in Advance.

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @abhiman 

 

https://www.servicenow.com/community/itsm-forum/adding-days-excluding-weekends/m-p/474066

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************