# Set date ranges for renting a flat

**URL:** <https://community.hivepress.io/t/set-date-ranges-for-renting-a-flat/2488>\
**Category:** Bookings\
**Tags:** bookings\
**Created:** [October 22, 2022, 9:30pm UTC](https://community.hivepress.io/t/set-date-ranges-for-renting-a-flat/2488 "2022-10-22T21:30:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xabidrive89](https://community.hivepress.io/user_avatar/community.hivepress.io/xabidrive89/32/2291_2.png) [@xabidrive89](https://community.hivepress.io/u/xabidrive89)\
**Post date:** [October 22, 2022, 9:30pm UTC](https://community.hivepress.io/t/set-date-ranges-for-renting-a-flat/2488/1 "2022-10-22T21:30:36Z")

</div>

Hello community, I am trying to make it possible for users to set a range of dates to rent a flat, but when I search in the search engine filtering by date range no results appear. I understand that this is because the existing ads didn’t have the date attribute, but when I attach it to the new ads it doesn’t let me select a date range, it only lets me select exact dates. Could someone help me?

![image](https://community.hivepress.io/uploads/default/original/2X/5/54aa6f802b7ea9587e78e7fb3de70ec1bc74be20.png)

 ![image](https://community.hivepress.io/uploads/default/original/2X/a/a8c448a83dfa8578697013aef85087db657a37c4.jpeg)

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [October 23, 2022, 9:07am UTC](https://community.hivepress.io/t/set-date-ranges-for-renting-a-flat/2488/3 "2022-10-23T09:07:44Z")

</div>

Hi,  
If you use the RentalHive theme it includes the Bookings extension. Please try adding Dates to a list of Default Fields in HivePress/Settings/Listings/Search section, this will add a date range field to the search form and it’ll be possible to search listings by availability. Please note that this field is available only for date-based bookings.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [November 22, 2022, 9:08am UTC](https://community.hivepress.io/t/set-date-ranges-for-renting-a-flat/2488/4 "2022-11-22T09:08:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
