Advanced Expression to Test Current Time
The current expression is ending the workflow at 7pm but we need it to continue to run until 10:50.
This is the function we are using in a test activity. What is weird is in one workflow this same formula runs until after 11 while in another it ends at 7pm.
Iif((Hour(GetDate()) > 6 AND Hour(GetDate()) <23), 1, Iif(((Hour(GetDate()) == 6 AND Minute(GetDate()) >= 30) OR (Hour(GetDate()) == 22 AND Minute(GetDate()) <= 50)), 1, 0))
