Here you go. I've added a link to a flow below, where the same flow controls on and off changes for two dimmer switches. There are two ONLY IFs used in this flow - both of them use the Date&Time thing. One of them is "ONLY IF it is daytime", and the other is "ONLY IF it is nighttime" - that way the flow can run no matter what time of day it is. While I've used two ONLY IFs, it could be a single ONLY IF that uses a variable or the mode thing.
Diagrammatically, here's what the flow looks like - with annotated explanations for what each thing does: