I have read that data type “date interval” is used to calculate the delta time in milliseconds between 2 dates.
Now, I would like to input a “duration” value and, starting from a “starting date”, getting the “finish date”.
Is there a way/data type able to make that in Bubble or am I obliged to use number input and go through brainy calculations?
Thank you!
Hi there, @federico.tomasi… I could easily be missing something here, but what’s so brainy about the calculations? If you give the user an input field (integer) and you define what the input field’s value represents (let’s say it’s minutes), all you would have to do is start date +(minutes):input's value
, and you would have the finish date.
Again, I could be missing something, but it seems like it could be that simple, and I hope this helps.
Best…
Mike
One thing to note is that, while you can of course take some scalar date and add time to it (with :+minutes or whatever), the duration datatype is not a number or a unit of time in most instances, but is purely a formatting thing. Additionally if you desire to add time(s) to a list of dates there is no efficient way to do that in Bubble, but my Parallels plugin can do that.
Hi @mikeloc , thank you for replying. I didn’t know and notice at all those time functions! I am quite new to Bubble. This essentially solves my issue. Thank you very much.
Hi @keith , thank you for replying. Good to know that as well. In the case I needed, I will consider for sure your plugin.