# Datetime picker minDate and maxDate

**URL:** <https://forum.inductiveautomation.com/t/datetime-picker-mindate-and-maxdate/65170>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 13, 2022, 1:53pm UTC](https://forum.inductiveautomation.com/t/datetime-picker-mindate-and-maxdate/65170 "2022-10-13T13:53:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [October 13, 2022, 1:53pm UTC](https://forum.inductiveautomation.com/t/datetime-picker-mindate-and-maxdate/65170/1 "2022-10-13T13:53:58Z")

</div>

I was using two datetime pickers in a page to assign dates to parameters for a query.

**What are the best ways to restrict the window size of the date range for two date pickers?**  
I don't want to switch to one picker. I had considered that, but it's not flexible enough.

* * *

I am binding the minDate of the start to the end, and the maxDate of the end to the start.  
I don't think it is optimal.

---

<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:** [October 13, 2022, 2:09pm UTC](https://forum.inductiveautomation.com/t/datetime-picker-mindate-and-maxdate/65170/2 "2022-10-13T14:09:47Z")

</div>

Use additional custom properties to hold "clamped" timestamps, such that the query binding never sees an over-size time span.
