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.

selected date should not be greater than 30days

Prem13
Tera Contributor

if a user a selects the date and time it should not be greater than 30 days

how to get check that based on users timezone

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Prem,

no need of any scripting for this;

you can do this using UI policy itself and it would take care of timezone and date/format as well

Sample Date Relative On or After 90 days from now

find_real_file.png

 

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Prem,

no need of any scripting for this;

you can do this using UI policy itself and it would take care of timezone and date/format as well

Sample Date Relative On or After 90 days from now

find_real_file.png

 

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

samadam
Kilo Sage

Is there any restrictions in Scoped app for this? I have the same requirement and cannot get it to work.