# Date picker - Gray out holidays

**URL:** https://community.glideapps.com/t/date-picker-gray-out-holidays/38176
**Category:** Feature Requests
**Created:** [February 6, 2022, 5:31am UTC](https://community.glideapps.com/t/date-picker-gray-out-holidays/38176 "2022-02-06T05:31:22Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [February 6, 2022, 5:48am UTC](https://community.glideapps.com/t/date-picker-gray-out-holidays/38176/2 "2022-02-06T05:48:14Z")

</div>

The post that you linked to is the option that allows you to restrict the date ranges with the date picker.

![Screen Shot 2022-02-06 at 1.36.53 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/7/474f9c7f58df276f6896989721fe85e35210bf73.png)

There is no way to prevent a user from selecting specific dates, as far as I’m aware. It _might_ be possible with CSS, but I can’t say for sure.

One option you do have (if using a custom form) is to catch “invalid” dates in real time and show appropriate warning messages - and prevent saving - if they don’t meet specific criteria.

Here is an example of what can be done:

The above example doesn’t stop the user from selecting dates that you don’t want them to. But it does warn them when they do, and prevent them from saving.

---

_[View the full topic](https://community.glideapps.com/t/date-picker-gray-out-holidays/38176)._
