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.

How to Compare GDT with specified time.

Baba Femi
Tera Contributor

Hello community

 

I have a use case below that i need to represent in an assignment rule script 

 

Check if time is between 9am and 5pm and assign to a specific assignment group, else assign to a default assignment group.

 

I have trouble with the GlideDateTime compareTo API but that compares the whole date time. I just need to compare the time. Any ideas how to script this out or alternative ways of meeting this requirement.

 

Thanks in advance.

0 REPLIES 0