# Alarm Journal - Initialize to current date then allow user custom date range input

**URL:** <https://forum.inductiveautomation.com/t/alarm-journal-initialize-to-current-date-then-allow-user-custom-date-range-input/90129>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [May 8, 2024, 10:58pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-initialize-to-current-date-then-allow-user-custom-date-range-input/90129 "2024-05-08T22:58:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Lyons](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/derek_lyons/32/54204_2.png) [@Derek\_Lyons](https://forum.inductiveautomation.com/u/Derek_Lyons)\
**Post date:** [May 8, 2024, 10:58pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-initialize-to-current-date-then-allow-user-custom-date-range-input/90129/1 "2024-05-08T22:58:11Z")

</div>

Greetings All!

I have an Alarm Journal that has start and end dates that are bound to pop-up calendar components.

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

The date for the "Start Date" pop-up calendar is bound to the current date/time, minus 24 hours.

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

The date for the "End Date" pop-up calendar is bound to the systems current date/time.

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

The goal is I'd like for the user to be able to select a **new** date/time range from the pop-up calendars **after** the screen is opened, and the Alarm Journal has _INITIALIZED_ to show the alarm history for the last 24 hours. I know the user will not be able to change this date range with how I have it set up currently, but I cannot wrap my head around what I need to change to get it to work. Is there a way I can one-shot the expression when the screen is opened?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![Derek\_Lyons](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/derek_lyons/32/54204_2.png) [@Derek\_Lyons](https://forum.inductiveautomation.com/u/Derek_Lyons)\
**Post date:** [May 9, 2024, 1:18pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-initialize-to-current-date-then-allow-user-custom-date-range-input/90129/2 "2024-05-09T13:18:56Z")

</div>

For those interested in the solution, I was able to change the end date binding from "[System]Gateway/CurrentDateTime" to expression binding with "now(0)".

Now, when the alarm history screen is opened, the alarm journal initializes to show the last 24 hours worth of alarms. Once opened and initialized, the user can select new date/time ranges from the pop-up calendars without them getting overwritten.
