Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Validate Date Range in Service Request

Brian Sorensen
Giga 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

Abbas_5
Tera Sage
Tera Sage

Hello @Brian Sorensen,

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