Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Date/Time picker for openingshours

Featured Replies

Hi!

 

I'm looking for a date/time picker that is configurable for opening hours.
The idea is to use it for reservations. But only withing business hours ofcourse.

Anyone!

 

There are any number of scripts that will do this for you.

What platform are you using for your website? Does it have a database?

  • Author

No DB. Preferably jquery, vanilla, vue... 
There are a lot of scripts available. But I can't seem to find one the uses business hours config.

If there is no DB how are you going to manage the reservations?

You could have 10 people all booking the same date/time.

This is going to be something custom - all a script will give you is the framework. You then need to modify to add the business hours limits.

One I use often is https://flatpickr.js.org because it works well with just about everything. If you look at the examples page you'll see config settings for min and max dates, disabling dates and if you need to display the time there's a min and max time setting.

24 minutes ago, Jack said:

One I use often is https://flatpickr.js.org because it works well with just about everything. If you look at the examples page you'll see config settings for min and max dates, disabling dates and if you need to display the time there's a min and max time setting.

Yes but you still need to save the reservation somewhere to prevent duplications.

46 minutes ago, fisicx said:

Yes but you still need to save the reservation somewhere to prevent duplications.

It depends how many reservations they get and if it has the potential to cause issues with duplicate bookings. In a lot of cases like restaurants, this can just be a form that goes through to the client and they can act on it how they want. If they only get a small amount of reservations per year it's not worth implementing anything more than is required.

If they do need to take into account duplicate bookings then they can justify the cost of implementing a more thought-out system because the demand warrants it. It's going to be a lot more involved to build though, these things can get stupid depending on the criteria, and any rules on the frontend need to be replicated on the server.

 

  • Author

Thanks Guys.

Form will just submit to owner. Reservations need to be manualy confirmed.
bookings are so many they can't keep up, they need to use a table booker plugin or some sorts.

Ok. The date picker part is simple.

But if you want to manage bookings you will need a database.

The reason I mentioned Wordpress is because there are a load of free booking/reservations plugins. Someone else has done all the hard work for you.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.