# Date component restricting date options

**URL:** <https://community.glideapps.com/t/date-component-restricting-date-options/54713>\
**Category:** Ask for Help\
**Created:** [November 22, 2022, 5:15pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713 "2022-11-22T17:15:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [November 22, 2022, 5:15pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/1 "2022-11-22T17:15:49Z")

</div>

Hi Team,

I want to prevent anyone choosing a date within the next 48 hours, is that possible. At the moment the only option I am seeing “now or later”

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [November 22, 2022, 5:40pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/2 "2022-11-22T17:40:44Z")

</div>

No… you would have to build your own calendar, very complicated…

Click my profile to see the sample (schedule meeting link)

The only way in native calendar would be to give warning after choosing the date

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [November 22, 2022, 5:45pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/3 "2022-11-22T17:45:38Z")

</div>

Thanks Uzo. 🤕

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [November 22, 2022, 5:46pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/4 "2022-11-22T17:46:38Z")

</div>

> [@date Calendar, booking paid meeting with Zoom or Google Meet](https://community.glideapps.com/t/calendar-booking-paid-meeting-with-zoom-or-google-meet/51160):
>
> [[Schedule Appointment]](https://schedule-appointment.glideapp.io) The most advanced booking system for Glide. Independent CSS calendars check for booked days, and booked hours on these days Time zones for client and host check if times are past, taken, or temporary in paid process and block clicking emailing and Google calendar set up… independent Stripe payment (outside Glide… no paid plans) blocking (temporary) for 3 minutes, date and time + duration while the payment is in progress ( no double booking)… when payment failed, or tim…

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [November 22, 2022, 9:49pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/5 "2022-11-22T21:49:33Z")

</div>

That looks super amazing. I love the whole UI/UX. Can it easily adapted for car rentals ?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [November 22, 2022, 10:05pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/6 "2022-11-22T22:05:40Z")

</div>

As I mention, is very complicated… but yes it can be adapted to any business

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 23, 2022, 12:08am UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/7 "2022-11-23T00:08:35Z")

</div>

You can kind of do this with a custom form. Because a custom form gives you the opportunity to create your own validation checks, you can prevent a user from submitting the form if the selected date falls outside a given range (and show a warning). You can’t stop them from selecting any date, but you can stop them from submitting with an invalid date.

---

<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 23, 2022, 11:26pm UTC](https://community.glideapps.com/t/date-component-restricting-date-options/54713/8 "2022-11-23T23:26:05Z")

</div>

There’s also an option to do it with CSS to disable the submit button, assuming this is Glide Apps. It would be a rich text component that becomes visible when the date is not within the next 48 hours.

However, it runs the risk of a user going into the source code and editing that CSS snippet to make the submit button available, since it’s “originally” clickable.
