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.

Cab date Shouldn't be after planned start date.

AbidSiddiqui
Mega Guru
Mega Guru

Hi Folks,

 

I have created a scenario where Cab date Shouldn't be after planned start date in Change Request.
It is giving me Erros even when I am selecting dates before Planned start date.

 

Please share your thoughts,
Thanks in advance.

 

Client Script -

AbidSiddiqui_0-1698032764790.png

 

Script Include -

AbidSiddiqui_1-1698033228991.png

 

 

 

 




7 REPLIES 7

Thanks Let me try it , 

It is not working; I believe it is because we are running it on load load and here we are changing values.
thanks for response

Sandeep Rajput
Tera Patron
Tera Patron

@AbidSiddiqui Does the message box shown using line number 16 in the script include shows the correct start date and time for CAB dates? If it doesn't, I suspect it to be a date formatting issue. Date sent from client script is not compatible with the dates passed in GlideDateTime constructor on line number 13 and 14.