I have a form that collects two times on a 24 hour time format. Like a start and end time. Let's say 14:00 and 16:30. I need calculate the hours and minutes duration and output the hours in one column, and the minutes in another. So in this case, the hours column would have 2, and the minutes would be 30. Also, it needs to handle when the time extends onto another day, such as start at 20:00 and end time is 00:45. In this case, the hours columns needs to output 4, and the minutes would be 45.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
zacharj13
Hello,
I have a form that collects two times on a 24 hour time format. Like a start and end time. Let's say 14:00 and 16:30. I need calculate the hours and minutes duration and output the hours in one column, and the minutes in another. So in this case, the hours column would have 2, and the minutes would be 30. Also, it needs to handle when the time extends onto another day, such as start at 20:00 and end time is 00:45. In this case, the hours columns needs to output 4, and the minutes would be 45.
Any help is greatly appreciated.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.