# Compare two dates

**URL:** <https://community.homey.app/t/compare-two-dates/67563>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [August 18, 2022, 4:23pm UTC](https://community.homey.app/t/compare-two-dates/67563 "2022-08-18T16:23:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VegardSk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vegardsk/32/27617_2.png) [@VegardSk](https://community.homey.app/u/VegardSk)\
**Post date:** [August 18, 2022, 4:23pm UTC](https://community.homey.app/t/compare-two-dates/67563/1 "2022-08-18T16:23:25Z")

</div>

Hi.

In an advanced flow I want to check if an event starts one day from now. Eg. I have a variabel that stores the next date for my renovation pick up. I want to check the night before if the garbage is being picked up with something like “variabel:RenovationDate - ToDaysDate = 1 day” then trigger a flow.

Is this possible to achieve in a simple way?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 18, 2022, 7:57pm UTC](https://community.homey.app/t/compare-two-dates/67563/2 "2022-08-18T19:57:57Z")

</div>

I think the easiest way is using the iCalCalendar app.
