# How to constraint date time picker in form?

**URL:** https://community.glideapps.com/t/how-to-constraint-date-time-picker-in-form/18103
**Category:** Ask for Help
**Created:** [November 7, 2020, 2:24pm UTC](https://community.glideapps.com/t/how-to-constraint-date-time-picker-in-form/18103 "2020-11-07T14:24:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Thibault\_Milan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thibault_milan/32/4970_2.png) [@Thibault\_Milan](https://community.glideapps.com/u/Thibault_Milan)
#### Post date: [November 7, 2020, 2:24pm UTC](https://community.glideapps.com/t/how-to-constraint-date-time-picker-in-form/18103/1 "2020-11-07T14:24:04Z")

</div>

I’m looking, for an app, to let users select a 📅 date & 🕰 time, in the future (so after `now`) and maybe constraint to some time (like only between `opening_hour` and `closing_hour`) and minimum date `now` + `min_time_for_order` …

Any plan to let us define constraints on time picker on Glide?  
Any idea of how to do it? I was thinking about maybe generating a 15min increment slot until `last_delivery_hour` and starting `now` + `min_time_for_order` or something like this …

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [November 7, 2020, 2:47pm UTC](https://community.glideapps.com/t/how-to-constraint-date-time-picker-in-form/18103/2 "2020-11-07T14:47:27Z")

</div>

As of now your best bet is like you stated, have a separate date pick via a choice component, and a time pick via another choice component.

---

<div class="post-metadata">

### Author: ![Thibault\_Milan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thibault_milan/32/4970_2.png) [@Thibault\_Milan](https://community.glideapps.com/u/Thibault_Milan)
#### Post date: [November 7, 2020, 3:00pm UTC](https://community.glideapps.com/t/how-to-constraint-date-time-picker-in-form/18103/3 "2020-11-07T15:00:43Z")

</div>

I fear that’s the only solution indeed. I let the feed open a couple of days if some Glide staff or insiders have some infos 🙂
