I need to have the maximum time of 48 hours between Planned Start Date and Planned End Date On a Change Request. Would I need to script this or is there an easier method?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 11:35 AM
Need to script it.. Either onchange when they fill in the end time or onsubmit when they try to save it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 11:38 AM
Hi Terrell,
You need to write a script to achieve this. Refer the following links
Client Script Date/Time Functions
Date/Time Functions ServiceNow
Thanks,
Nitin.
Hit Like, Helpful or Correct based in the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 11:38 AM
Maximum, not mandatory. It can be less than 48 hours, just not more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 11:45 AM
You have to create a client script and script include. Please look into the first link that I have posted and use the client script 'getDateTimeDiff' and script include function 'getDateTimeDiff' and they will return you the time difference between the two dates and write a if condition to clear the Planned End Date if the difference is less than 48 hrs.
Thanks,
Nitin.
Hit Like, Helpful or Correct based in the impact of the response