Time Differences

Hello everyone,

I’m working on building a healthcare product using the Bubble platform, and I’m trying to figure out how to create a timer functionality. Specifically, I need to be able to track the time between when the user logs their sunscreen usage and the current time, and display that in a (hours):(minutes):(seconds) format.

I have a sunscreen_log table or data type in my Bubble app that keeps track of when the user logs their sunscreen usage. I’m able to access the current date and time, but I’m struggling to find the right function or workflow to calculate the difference between the two timestamps and present it in the desired time format.

Could someone please provide some guidance on how I can approach this within the Bubble platform? I’m new to Bubble, so any help explaining the steps or pointing me to the relevant Bubble features would be greatly appreciated.

My goal is to have the app track the time since the user last logged their sunscreen usage and display that information in a clear, easy-to-understand way. This is an important part of the user experience for my healthcare product.

Thank you in advance for your assistance! I’m happy to provide any additional context that might be helpful.

Hi, @itaygoldz8! I’m going to send you a test I did here, here are two print screens. Who knows, maybe it will give you some ideas.