End date can not less than start date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 09:22 AM
Created two Date/time fields in format DD:MM:YYYY HH:mm:ss
End date(DD:MM:YYYY HH:mm:ss) can not be earlier than Start date(DD:MM:YYYY HH:mm:ss)??
Can anyone give script for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 09:41 AM
Hi,
Depending on your requirement, you might not need to do any scripting.
You can for example create an UI policy that checks the two dates, and prohibits submitting the form if the End date is before the start date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 02:24 AM
Hi OlaN
can you give condition for UI policy?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 07:53 AM
Here is a simple example on what you can do (example is done with Service Catalog variables, but can be used in regular UI policy also).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 03:12 AM
Hi @Community Alums ,
I have implemented this usecase, it's working fine.
You can achieve with the help of onChange Client Script on field End Date.
Script:
Testing: