End date and start date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2022 08:21 AM
How do I make sure that the start date can be before or after the end date. Also the End date can be before or after the start date on a form?
- Labels:
-
Service Desk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 11:42 AM - edited 10-05-2022 11:43 AM
Hi Rukayat,
This is an odd requirement -- under what circumstances can a task start after it ends?
If you think there's a valid reason, and I really would challenge that there isn't, the scripts that validate date order are listed in the client scripts associated to the table you're working on. Search for scripts with a name of "*date onChange Validation" and review those.
Let me know how you get on with this, and why you want to do it!
Ryan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 11:57 AM
Hi,
You can check this link, where i have provided client script to validate the start/end dates.
www.servicenow.com/community/developer-articles/date-validations-client-scripts/ta-p/2298860
Mark the comment as a correct answer and also helpful if this helps to solve the problem.