# Initialize datetimepicker value

**URL:** <https://forum.inductiveautomation.com/t/initialize-datetimepicker-value/37404>\
**Category:** Ignition\
**Created:** [August 5, 2020, 2:40pm UTC](https://forum.inductiveautomation.com/t/initialize-datetimepicker-value/37404 "2020-08-05T14:40:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tstanford](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@Tstanford](https://forum.inductiveautomation.com/u/Tstanford)\
**Post date:** [August 5, 2020, 2:40pm UTC](https://forum.inductiveautomation.com/t/initialize-datetimepicker-value/37404/1 "2020-08-05T14:40:26Z")

</div>

I want to initialize a set of datetimepickers with the previous days shift start times when the view loads but then allow the user to change it afterwards.

I was wondering if there was a simple clean way to do this? I already have the times being calculated.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [August 5, 2020, 2:45pm UTC](https://forum.inductiveautomation.com/t/initialize-datetimepicker-value/37404/2 "2020-08-05T14:45:35Z")

</div>

In vision I’ve had good luck using a binding and turning polling off. I think datetimepicker is a perspective component, but you could try the same strategy.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 5, 2020, 3:07pm UTC](https://forum.inductiveautomation.com/t/initialize-datetimepicker-value/37404/3 "2020-08-05T15:07:42Z")

</div>

Any binding should work for you just fine. If you’re using a Named Query, then you should make sure to leave polling off. If using an Expression binding which uses a function which allows for polling, make sure you set the polling argument to `0` (like `now(0)` ). Property bindings require no omissions, but if the value they are bound to changes they will overwrite the user-selected value.
