# DateTime Input - Setting value to current time but allowing other selections

**URL:** <https://forum.inductiveautomation.com/t/datetime-input-setting-value-to-current-time-but-allowing-other-selections/67275>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [December 6, 2022, 12:41pm UTC](https://forum.inductiveautomation.com/t/datetime-input-setting-value-to-current-time-but-allowing-other-selections/67275 "2022-12-06T12:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Hrynciw](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@Robert\_Hrynciw](https://forum.inductiveautomation.com/u/Robert_Hrynciw)\
**Post date:** [December 6, 2022, 12:41pm UTC](https://forum.inductiveautomation.com/t/datetime-input-setting-value-to-current-time-but-allowing-other-selections/67275/1 "2022-12-06T12:41:57Z")

</div>

Hello all.

I am trying to use the DateTime Input to filter out a table of data as soon as the page opens. What I am attempting to do is set the DateTime Input to the current date automatically, while also allowing it to be changed to another date as a filter. When I bind the value to the expression dateFormat(now(), "MM/DD/YYYY"), it sets the current date but will not allow me to change it as it is bound. Does anyone know a workaround for this? All help is appreciated.

---

<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:** [December 6, 2022, 1:18pm UTC](https://forum.inductiveautomation.com/t/datetime-input-setting-value-to-current-time-but-allowing-other-selections/67275/2 "2022-12-06T13:18:16Z")

</div>

Use `now(0)`. If you leave the poll time out, it defaults to 1000, which makes the binding repeat. When poll time is zero, the binding runs once.

---

<div class="post-metadata">

**Author:** ![Robert\_Hrynciw](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@Robert\_Hrynciw](https://forum.inductiveautomation.com/u/Robert_Hrynciw)\
**Post date:** [December 6, 2022, 1:30pm UTC](https://forum.inductiveautomation.com/t/datetime-input-setting-value-to-current-time-but-allowing-other-selections/67275/3 "2022-12-06T13:30:38Z")

</div>

Thank you, I figured it was something silly and small like that. I appreciate it!
