# Need help with Timer expression

**URL:** <https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807>\
**Category:** Ignition\
**Created:** [March 16, 2015, 8:47pm UTC](https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807 "2015-03-16T20:47:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [March 16, 2015, 8:47pm UTC](https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807/1 "2015-03-16T20:47:17Z")

</div>

Hi, I want to activate a timer when a date is between two dates, I have this but it doesn’t work.

```auto
timeBetween({Root Container.inicio.date}, {Root Container.fin.date}, {Root Container.hora.date})
```

I apreciate any help thanks.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [March 16, 2015, 9:08pm UTC](https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807/2 "2015-03-16T21:08:43Z")

</div>

What values does {Root Container.inicio.date}, {Root Container.fin.date} and {Root Container.hora.date} have?

What is the expression bound to?

Best,

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [March 16, 2015, 10:07pm UTC](https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807/3 "2015-03-16T22:07:38Z")

</div>

The three are pop up calendars, and the expression is in the running property of the timer. i have proved this, but it doesn’t work.

`
if(timeBetween({Root Container.inicio.date}, {Root Container.fin.date}, {Root Container.hora.date}),{Root Container.timer.running}=1,0)`

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [March 17, 2015, 2:33pm UTC](https://forum.inductiveautomation.com/t/need-help-with-timer-expression/9807/4 "2015-03-17T14:33:37Z")

</div>

I resolved it, I don’t realized that the first argument is the given date.
