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

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

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
Mega Patron