Hour interval for Renting webapp

hi guys ,

I am developing an app for renting stuff so I need to save on the DB the starting hour and then the ending hour of the renting , so I need to save the hour interval, Can you give me some advice on how to do it? I don’t see how the normal date/time picker element can do it, and which element do you recommend me to use?

Thanks have a nice one!

Hey @PinguDev

When a user starts the rent, have the DB capture the current date & time of the user and then when the user ends the rent, save the current date & time as well and then to extract the hour different between both, subtract the end time from the start time and then use the “extract” function and set it to hour. It should give you the number of hours for the rent period.