#Comparing dates

1 messages · Page 1 of 1 (latest)

tiny finch
#

Does anybody know how to compare dates by.
I have already tried a lot of things but I cant get to to work. This is the latest template script I tried as a condition:
{{ states('input_datetime.abit_date') <= now().strftime('%Y-%m-%d') }}

hushed knoll
#

Pretty sure you'd want to convert them to something more like a timestamp though