I've seen a lot of threads on this topic, but nothing that really gets at something fundamental that I'm trying to achieve in PowerApps and maybe would help someone else. Here's my example code:
If(
Today()>10/01/2023 And Today() < 10/01/2024, Set (varFY, "FY2023")
)
This seems incredibly straightforward but the evaluation fails in a way that doesn't make sense to me.
I'm trying to say that If Today is after 10/01/2023 AND before 10/01/2024 Then the variable should be this.
The way this evaluates basically determines Today() (or Now() if I swap that in) to be greater than (and true) no matter what the other static date given is... why?!
Wrapping things in Text() doesn't seem to make a difference. There must be something obvious that I'm missing because this seems like it would be a very straightforward calculation....