# DateTime input refresh

**URL:** <https://forum.inductiveautomation.com/t/datetime-input-refresh/75845>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 3, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845 "2023-07-03T13:51:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [July 3, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845/1 "2023-07-03T13:51:56Z")

</div>

Hello,  
I have a datetime input that is set in binding to now().  
When you open the page, it takes the current moment  
I also put a refresh button in the page and everything is refreshed but the datetime is not.  
Do you know any simple trick to refresh the datetime as well

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845/2 "2023-07-03T14:08:20Z")

</div>

Show your code (in the refresh button, and your datetime expression).

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [July 3, 2023, 2:46pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845/3 "2023-07-03T14:46:28Z")

</div>

exprssion binding is:  
now(0)

Button is a event -\> OnClick -\> refresh  
I try to use way simple.

 ![date](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/2/6248782546f3399ab67ec9e4558b3933d15df5fc.png)  
 ![refresh](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a31bba9c7ad9429ba3086fc9e795e130bbf9f673.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2023, 2:51pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845/4 "2023-07-03T14:51:36Z")

</div>

Yeah, that action is just a tab reload, it isn't guaranteed to refresh every binding in the view.

You need a script that explicitly re-evaluates your various components bindings using `.refreshBinding()`

[https://docs.inductiveautomation.com/display/DOC81/Perspective+Component+Methods#PerspectiveComponentMethods-RefreshingBindings](https://docs.inductiveautomation.com/display/DOC81/Perspective+Component+Methods#PerspectiveComponentMethods-RefreshingBindings)

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [July 3, 2023, 2:57pm UTC](https://forum.inductiveautomation.com/t/datetime-input-refresh/75845/5 "2023-07-03T14:57:24Z")

</div>

Ok, Thanks.

I was just wondering why refresh doesn't do it even though it shows reloading the project.
