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.

Need to Add 10days to the currentDate Excluding Weekends(SAT & SUN)

Vinay49
Tera Expert

Hello Team,

We have Date field on incident form. It should display the dates after 10days from today(Excluding weekends)

Lets Say,
Today is 14-12-2023, My field should shows the dates from 29-12-2023(excluding Weekends Sat & Sun). User should able to select the dates from 29th Dec.& should not able to select before 29th of DEC.


Vinay49_0-1702548742181.png

 



How can we achieve this?

Thanks In advance

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vinay49 

 

On calendar it is not possible to hide the weekends. instead of this, if a user select weekend, you can show the message.

https://www.servicenow.com/community/developer-forum/how-to-remove-sundays-and-saturdays-from-the-ca...

https://www.servicenow.com/community/developer-forum/how-to-exclude-weekends-from-selected-days/m-p/...

 

https://www.servicenow.com/community/developer-articles/select-only-business-days-excluding-holidays...

*************************************************************************************************************
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]

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