End date and start date

Rukayat Nwokoch
Kilo Explorer

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? 

2 REPLIES 2

Ryan Whittaker
Tera Guru

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

asifnoor
Kilo Patron

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.