# How to block the data&time on calendar

**URL:** <https://forum.bubble.io/t/how-to-block-the-data-time-on-calendar/202063>\
**Category:** Database\
**Created:** [April 14, 2022, 12:01am UTC](https://forum.bubble.io/t/how-to-block-the-data-time-on-calendar/202063 "2022-04-14T00:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuremiya](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kuremiya](https://forum.bubble.io/u/kuremiya)\
**Post date:** [April 14, 2022, 12:01am UTC](https://forum.bubble.io/t/how-to-block-the-data-time-on-calendar/202063/1 "2022-04-14T00:01:22Z")

</div>

Hi Bubblers,

I am struggling with this for a while, so please help me out if you can.

I am trying to build a calendar, where users can select date&time and reserve a room for selected time slot.

I was able to built the calendar and store the starttime and endtime.  
However, disabling to reserve when there is already another reservation is not working.  
i had the condition and data base set up as screenshot,

Am I doing this completely wrong?

![スクリーンショット 2022-04-14 8.56.31](https://us1.discourse-cdn.com/bubble/original/3X/f/4/f4349c56674e67481dcb00b3d8af120c37277cef.png)

 ![スクリーンショット 2022-04-14 8.56.38](https://us1.discourse-cdn.com/bubble/original/3X/1/1/11c4f2a7066e88102517036ac084b58ad56207e1.png)

---

<div class="post-metadata">

**Author:** ![Eugene\_West](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eugene_west/32/106508_2.png) [@Eugene\_West](https://forum.bubble.io/u/Eugene_West)\
**Post date:** [April 14, 2022, 2:14am UTC](https://forum.bubble.io/t/how-to-block-the-data-time-on-calendar/202063/2 "2022-04-14T02:14:33Z")

</div>

Remember always. The Bubble checks and returns only exact matches, until a second.  
For example, if your client reserved on at 04/13/22 12:54:44 and the second one also reserved on at 04/13/22 12:58:13.  
The Bubble will say it’s okay there are no matches.  
To avoid this and find matches you need to save dates with the same hours.  
Like a: // Current cell date: change hour to 12 //

---

<div class="post-metadata">

**Author:** ![kuremiya](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kuremiya](https://forum.bubble.io/u/kuremiya)\
**Post date:** [April 23, 2022, 3:14pm UTC](https://forum.bubble.io/t/how-to-block-the-data-time-on-calendar/202063/3 "2022-04-23T15:14:39Z")

</div>

Thanks! i have tried several things and managed to do what i wanted to do!
