# Block Future dates

**URL:** <https://community.weweb.io/t/block-future-dates/930>\
**Category:** How do I?\
**Created:** [August 3, 2022, 11:51am UTC](https://community.weweb.io/t/block-future-dates/930 "2022-08-03T11:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![achinlalit](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@achinlalit](https://community.weweb.io/u/achinlalit)\
**Post date:** [August 3, 2022, 11:51am UTC](https://community.weweb.io/t/block-future-dates/930/1 "2022-08-03T11:51:12Z")

</div>

I want to block any future dates in Calendar, .i.e. user should not be able select any date beyond today. @Joyce

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 8, 2022, 2:06pm UTC](https://community.weweb.io/t/block-future-dates/930/2 "2022-08-08T14:06:04Z")

</div>

Hi @achinlalit 👋

I’m not sure, I’ll have a look.

Are you referring to the Calendar Element or one of the Date Picker Elements?

 ![CleanShot 2022-08-08 at 16.04.50@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8ef1897b81a622961558a78dd77126ec6590c05a.png)

---

<div class="post-metadata">

**Author:** ![achin](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@achin](https://community.weweb.io/u/achin)\
**Post date:** [August 8, 2022, 2:51pm UTC](https://community.weweb.io/t/block-future-dates/930/3 "2022-08-08T14:51:27Z")

</div>

@Joyce Now when I read my question yes its confusing, Here is the recording

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [August 19, 2022, 1:06pm UTC](https://community.weweb.io/t/block-future-dates/930/4 "2022-08-19T13:06:43Z")

</div>

Hey @achin, it’s not possible in no-code at the moment but we’ve added it to our list of user improvement suggestions.

You might be able to do it in JS but I wouldn’t know how.

Here’s [another thread around customizing that same date picker element](https://community.weweb.io/t/date-picker-custom-ranges-of-dates/943) where a couple of users suggested an approach.

Sorry I couldn’t help more with this one!
