Assigning dates/times to a variable
planned
M
Matthew
I was thinking it might be nice to vary a flow by time of day.. so between 11am and 2pm it would say one thing, and otherwise it'd say another thing.
I didn't see any way to assign dates/times to a variable so that they can be used in a conditional statement later on. You'd want to keep it quite generic, so I can say something like;
Variable name: HOUR
Initial value: {dateFormat(new Date(), "h")}
This is quite flexible, allowing developers to do what they need to do with the date/time in their Flows.
C
Christian
marked this post as
planned
Thanks for posting Matthew We definitely want to add a time/date condition and this might be a nice way of doing it!