Comparing dates

I'd like to compare two dates, probably stored via a local variable to see if it's "tomorrow" yet. Storing "now" in a variable and then storing the last time the action I want to track in a variable and comparing the two seems to fail (I'd expect this to evaluate to true):

Is there a way to compare just dates (ignoring the time of day)?

So you don't know when the rule is triggered but want to know when it it's the next day since the last time it ran?

If so, put %date% in a string variable, and just compare two strings.

Yes, that’s what I want and it looks like your suggestion works perfectly. Thanks!

FYI, this is a great tool for that sort of thing. It's in HPM

1 Like

Download the Hubitat app