I am working on a solution to get store owners in my App to set their opening and closing hours, from Monday to Sunday. The Date picker, being linked to a necessary date, does not allow me to use it to set opening and Closing hours for each day of the week his/her store is open. There seems to be no such thing as a Time of Day picker.
Am I right to think that I will not be able to use date picker for what I want to do? Instead I have to nocode it myself.
Hey Guy! As Keith explains in the video that is linked in the newsletter issue, there is no such thing as a "time" data type in Javascript, which explains why there is no native Time of Day picker in Bubble.
That said, you can create it yourself in Bubble. To do so, I would suggest taking a look at this post: https://forum.bubble.io/t/time-picker-without-date/50827. In it, Boston explains how to set your data types in order to have a time picker that doesn’t save the date but saves the time, allowing you to do all sort of calculations with it.
Thanks. Just logged in for the first time. Pleasantly surprised to find I subscribed to this at some point. Love this!
Thank you so much Will!
Hello Pablo and everyone else on this blog.
I am working on a solution to get store owners in my App to set their opening and closing hours, from Monday to Sunday. The Date picker, being linked to a necessary date, does not allow me to use it to set opening and Closing hours for each day of the week his/her store is open. There seems to be no such thing as a Time of Day picker.
Am I right to think that I will not be able to use date picker for what I want to do? Instead I have to nocode it myself.
Thanks
Guy
Hey Guy! As Keith explains in the video that is linked in the newsletter issue, there is no such thing as a "time" data type in Javascript, which explains why there is no native Time of Day picker in Bubble.
That said, you can create it yourself in Bubble. To do so, I would suggest taking a look at this post: https://forum.bubble.io/t/time-picker-without-date/50827. In it, Boston explains how to set your data types in order to have a time picker that doesn’t save the date but saves the time, allowing you to do all sort of calculations with it.
Thanks for commenting and hope this helps!