# Date and Time Limit

**URL:** https://forums.knack.com/t/date-and-time-limit/7533
**Category:** Ask Developers
**Created:** [October 12, 2016, 2:42pm UTC](https://forums.knack.com/t/date-and-time-limit/7533 "2016-10-12T14:42:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JesusPinei28405](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@JesusPinei28405](https://forums.knack.com/u/JesusPinei28405)
#### Post date: [October 12, 2016, 2:42pm UTC](https://forums.knack.com/t/date-and-time-limit/7533/1 "2016-10-12T14:42:57Z")

</div>

Can I limit what time is select in a Date\Time field based on another Date\Time field? Our app has one field that starts a record, then a second date and time that is based on that first one. I want to only give users the option to select a time 2 hours after the first time and also set a limit, like 5:00 PM. So for example, if the request was started at 8:00 AM, then the second time can only be from 10:00 AM to 5:00 PM. Please help. This is a big request we have. Users are selecting wrong hours even though they know they have a 2 hour gap that needs to be filled first. Thank you.

---

<div class="post-metadata">

### Author: ![BennetSt.L83204](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BennetSt.L83204](https://forums.knack.com/u/BennetSt.L83204)
#### Post date: [October 21, 2016, 7:22pm UTC](https://forums.knack.com/t/date-and-time-limit/7533/2 "2016-10-21T19:22:52Z")

</div>

This is likely possible with Javascript.

Point of Clarification - is that FIRST Time already on the recorded and saved, or is a time that the user is selecting before selecting the first time?
