Validate date field with business days

Rj27
Mega Guru

Hi All,

I have a DATE field and I need to validate it such that it difference between the current date and entered date is 4 BUSINESS days. 

Eg. if today is 21st August, earliest selectable date should be 28th August. Any value entered before 28 should not be accepted.

I tried to script few things through client script but 4 biz days is not working. Any leads would be appreciated. 

Thank you in advance.

-Ruchi

 

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You could achieve such a validation thru UI Policies. Have a look at an article I wrote on this:
https://community.servicenow.com/community?id=community_article&sys_id=f61964aadbcb3fc85129a851ca961...

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

Thanks for the response. It's really helpful but I am looking for business daysto be accepted (Mon-Friday).

Regards,

Ruchi

This was extremely helpful on trying to set dates through inline scripts in Flow Designer, thanks for your continued suggestions on community. 

SanjivMeher
Kilo Patron
Kilo Patron

Following blog should help

 

https://community.servicenow.com/community?id=community_blog&sys_id=467c62e1dbd0dbc01dcaf3231f9619ad

 

Use Case 2.1 should help you.


Please mark this response as correct or helpful if it assisted you with your question.