Validate date field with business days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 11:19 AM
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
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 12:08 PM
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
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 09:41 PM
Hi Mark,
Thanks for the response. It's really helpful but I am looking for business daysto be accepted (Mon-Friday).
Regards,
Ruchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2021 07:31 AM
This was extremely helpful on trying to set dates through inline scripts in Flow Designer, thanks for your continued suggestions on community.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 10:16 PM
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.