Different behaviour of logic during the day

6
I would like to configure logic that behaves differently during the course of a day. I'm working on a planning system, and the business rules for planning are different after 15:00, is there a way to see whether it's past three o'clock?
asked
1 answers
6

you can use an microflow expression to retrieve the current hour of the day.

If you use the format date expression you can get the current hour, which can be parsed as an integer and than you can see if that integer is larger or equal than 15. See the example below...

parseInteger(formatDateTime( [%CurrentDateTime%], 'HH') ) >= 15
answered