# Flow for days between two dates

**URL:** https://community.homey.app/t/flow-for-days-between-two-dates/106498
**Category:** Questions & Help
**Tags:** flow
**Created:** [March 17, 2024, 2:50pm UTC](https://community.homey.app/t/flow-for-days-between-two-dates/106498 "2024-03-17T14:50:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Joseph\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joseph_rodriguez/32/79349_2.png) [@Joseph\_Rodriguez](https://community.homey.app/u/Joseph_Rodriguez)
#### Post date: [March 17, 2024, 2:50pm UTC](https://community.homey.app/t/flow-for-days-between-two-dates/106498/1 "2024-03-17T14:50:46Z")

</div>

Ok so I’m trying to create a flow for a scene button, it would be triggered by pressing the scene button and depending on the date it would trigger a different scene. My question is how would i set a conditions for the “between dates” without setting the year? I know there is card to choose between two dates, but it forces me to choose a year so i would have to constantly have to change the year to make them work.

---

<div class="post-metadata">

### Author: ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)
#### Post date: [March 17, 2024, 3:35pm UTC](https://community.homey.app/t/flow-for-days-between-two-dates/106498/2 "2024-03-17T15:35:51Z")

</div>

Work around:

Create a yes/no variable and change the value on a certain date.

Check the value when pressing the button:

 ![Scherm­afbeelding 2024-03-17 om 16.31.40](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/0/a0ec2a4bd1c4e60c6ff0841a21f3f4bd67352fd5.jpeg)

---

<div class="post-metadata">

### Author: ![Joseph\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joseph_rodriguez/32/79349_2.png) [@Joseph\_Rodriguez](https://community.homey.app/u/Joseph_Rodriguez)
#### Post date: [March 17, 2024, 5:11pm UTC](https://community.homey.app/t/flow-for-days-between-two-dates/106498/3 "2024-03-17T17:11:33Z")

</div>

Seems like a good idea, i would just have to create a variable for every different holiday on the year. I just figured there would be a way to ignore the year value in the card, nevertheless your suggestion does actually work, thanks!

---

<div class="post-metadata">

### Author: ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)
#### Post date: [March 17, 2024, 8:01pm UTC](https://community.homey.app/t/flow-for-days-between-two-dates/106498/4 "2024-03-17T20:01:30Z")

</div>

If it’s for holidays you should also look at the excellent [IcalCalendar App for Homey | Homey](https://homey.app/en-gb/app/no.runely.calendar/IcalCalendar/)

If it’s public holidays you’re looking for you can often find online calendars with these in which you can subscribe to using the app. Or for other holidays you can create and share a calendar of your own
