# Popup Calendar Daily Update

**URL:** <https://forum.inductiveautomation.com/t/popup-calendar-daily-update/6244>\
**Category:** Ignition\
**Created:** [April 16, 2013, 4:49pm UTC](https://forum.inductiveautomation.com/t/popup-calendar-daily-update/6244 "2013-04-16T16:49:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nboyenga](https://avatars.discourse-cdn.com/v4/letter/n/22d042/32.png) [@nboyenga](https://forum.inductiveautomation.com/u/nboyenga)\
**Post date:** [April 16, 2013, 4:49pm UTC](https://forum.inductiveautomation.com/t/popup-calendar-daily-update/6244/1 "2013-04-16T16:49:11Z")

</div>

I have a popup calendar that the user selects a date and time for (the start time of a production shift) in a popup window. Is there a way to make the calendar update on a daily basis to the current date while leaving the time constant?

for example,  
Have the time always begin displayed at 7:00 am while the date updates to the current date.

This calendar still needs to remain editable so the user can select a different time/date if the start time is different than what is originally displayed.

Thanks

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [April 16, 2013, 6:49pm UTC](https://forum.inductiveautomation.com/t/popup-calendar-daily-update/6244/2 "2013-04-16T18:49:27Z")

</div>

Place this expression in the Date(immediate) property of the calender component.

```
                      dateFormat(now(0), "yyyy-M-dd 7:00:00")
```

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [April 17, 2013, 12:08am UTC](https://forum.inductiveautomation.com/t/popup-calendar-daily-update/6244/3 "2013-04-17T00:08:22Z")

</div>

[quote=“Greg.Simpson”]Place this in the Date(immediate) property of the calender component.

```
                      dateFormat(now(0), "yyyy-M-dd 7:00:00")[/quote]

```

That… is so much easier than the way I originally did this…
