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
Recent discussion on how to ID what day of the week it is in a rule prompted me to want a rule too... (in my case it was garbage cans).
Having already done some date/time work with my Meteorological Seasons driver, I wrote this driver this AM to allow me to parse values so I can easily control rules. Initially I was putting the variables list from PHP but then I learned that Java comes up... um. short. At least in pre-defined ways. Update - Fixed 0.2.2 I haven't determined the Pattern for th…
1 Like