Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Validate Date Range in Service Request

BrianS344076034
Tera Guru

I have 2 dates that I need to validate the difference between and am stuck.

Here is the requirements that have been asked

Date 1 - can not be further out than TODAY + 21 days

Date 2 - can not be further out than 30 days passed Date 1

 

I was able to use a UI policy and have

BrianSorensen_0-1711759861417.png

 

But that uses TODAY +30 and errors out if you are further out.

 

I'm stuck.  Any ideas?

1 REPLY 1

abbasshaik4
Tera Sage

Hello @BrianS344076034,

Please refer to the below link:
https://www.servicenow.com/community/developer-forum/validate-date-range-first-second-third-fourth-l...

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik