How to compare if current time falls within a time period,

Baba Femi
Tera Contributor

Hello community,

 

How can I script to check if current time falls within 9am and 5pm for example. The GDT uses the whole date time object, i'm only interested in time portion.

 

My use case is to route tickets based on ticket created time using assignment rule script. If created time is within 9am and 5pm, route to a specific team other to a default group.

 

Thanks

0 REPLIES 0