I have a duration of access (how many hours staying) and a check in date, they together make the initial date of the check out date as seen with the display and code below:
The issue is it works with adding hours, but I was hoping to extract the minutes from the check in date and add it to the code attachment above but get this error…
Was wondering without any additonal inputs for adding the minutes (as I am out of space on the page) would there be another way of adding the minutes to the check out date.
Based on your message, it seems you’re encountering some difficulties with setting up the expression in the Air Date/Time picker element, is our understanding right?
The “Initial date” field is designed to accept a Bubble value of the type “date”, which is a standard field type in many elements. If you wish to add “+ hours” to your initial expression, please ensure that the expression following “+ hours” is of type “number”, otherwise, it will not be accepted.
Hope this information is helpful to you. If you have any further questions, please don’t hesitate to ask.
It’s great to hear that the previous advice proved useful for your use-case. Please feel free to reach out anytime you have any plugin-related questions.
By the way, if you enjoy the plugin, we’d love for you to rate it. Simply go to the Plugins tab in the Bubble editor, search for the plugin by name, and award it the stars you think it deserves. Your support would mean a great deal to us!