# Current date just once Popup Calendar Vision

**URL:** <https://forum.inductiveautomation.com/t/current-date-just-once-popup-calendar-vision/75864>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [July 3, 2023, 6:31pm UTC](https://forum.inductiveautomation.com/t/current-date-just-once-popup-calendar-vision/75864 "2023-07-03T18:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [July 3, 2023, 6:31pm UTC](https://forum.inductiveautomation.com/t/current-date-just-once-popup-calendar-vision/75864/1 "2023-07-03T18:31:00Z")

</div>

Hello Everyone

I have a report that gets the input dates through 2 calendar popups.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/e/7e0e6b7a26f43a1edae0580991f5d379ed9207b9.png)

Everything is working ok and I just want to start the dates by default with the actual date (The final date is NOW() and the initial date is dateArithmetic(now(),-15,'days') ) but when I try to put a different day the calendar is updated each second.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd209c84d2718dc7d1d2ad6342e4ba3a50b56e3f.png)

I just need that the date take just one time the current date and then the customer can modify the date as he wants but currently the customer select a date and a second later the date is updated to the current date.

I really appreciate your help with this that should be so easy but I'm a little bit lost.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 3, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/current-date-just-once-popup-calendar-vision/75864/2 "2023-07-03T18:34:05Z")

</div>

`now(0)` if you want it to execute just once. Otherwise it's executed at the default scan rate.

[https://docs.inductiveautomation.com/display/DOC81/now](https://docs.inductiveautomation.com/display/DOC81/now)

Oh - you might want to fix your question title.

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [July 3, 2023, 7:43pm UTC](https://forum.inductiveautomation.com/t/current-date-just-once-popup-calendar-vision/75864/3 "2023-07-03T19:43:04Z")

</div>

Thank you very much! I knew was easy but I was confused.

Thank you again!
