Calculating hours in between 2 values of time

hi bubblers

so im trying to make a hour registrations feature in my app. there when a user set a start time and end time should calculate how many hours there have been used on a task


my issue right now is that it makes a calcualtion.. but 1 hours becomes -100 hour and 2 hours become -200 hours..

and i cant figure how to make the right calculation to make it calculate right
i use a date/time picker to define the time

hope someone can help me a bit with the right calculation

You need to use Dates for this, not text.

So your Worktime Start and Worktime End fields should be dates.

Then just subtract the start time from the end time.

thank you that did the trick :smiley:

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