React-dates: Half days?

Created on 15 Oct 2016  路  7Comments  路  Source: airbnb/react-dates

Is there a way to block off part of a day? For example If I wanted to show that only part of the day has been booked but the remaining part is still available.

feature request

Most helpful comment

@acp31 Maybe you mean showing nights like this "half"?

http://onefinestay.github.io/react-daterange-picker/

All 7 comments

What's your use case? Typically date pickers I've seen deal in "days" or "nights" as opposed to partial days.

I am making a calendar for a client that rents out expensive property. The client has requested for the calendar to show when a property is not booked for an entire day they want the days to be shaded halfway if the day is only partially booked.

Thanks for the explanation - so the client rents it out hourly, or in what time chunks?

The clients wants to rent out their properties in half day chunks. For example the client wants the ability to show a potential new customer that a property might not be available in the morning

Gotcha, thanks for explaining.

Currently we only support "days" (which is also "nights" given that they're usually displayed the same).

Although we don't need a "half day" feature ourselves, this seems like something reasonable to add - as long as we can work out all the usability questions. We'd need to have half-day highlighting (vertical or horizontal? configurable?), and some way of cleanly and accessibly differentiating between which half of the day you'd selected, and making sure it's very clear what a half day selection means.

Hey Thanks for all of your help. I was poking around the airbnb website and noticed that some airbnb users have a set of dates blocked for the start date and a set blocked for end dates. This lets a user trying to make a reservation book a day that another client is checking out. Is there a way to do this with the current react-dates calendar?

@acp31 Maybe you mean showing nights like this "half"?

http://onefinestay.github.io/react-daterange-picker/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jucesr picture Jucesr  路  19Comments

jnrepo picture jnrepo  路  40Comments

AntiFish03 picture AntiFish03  路  19Comments

brunocoelho picture brunocoelho  路  28Comments

majapw picture majapw  路  26Comments