Add minutes to a date and time picker

Currently, I am using the plugin:

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:


Display

Code
Code

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…


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.

Thanks

Hello @muellerme ,

Thank you for reaching out to us.

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.

Wishing you a great day ahead!

Best regards,
Zeroqode Support Team

1 Like

That makes a lot more sense now, thought it would still be a date type. Thanks Zeroqode Support Team!

1 Like

Hello @muellerme,

Thank you for your message and for updating us.

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!

Thanks again, and we wish you a great week ahead!

Best regards,
Zeroqode Support Team

This topic was automatically closed after 70 days. New replies are no longer allowed.