JasonTruman
Board Regular
- Joined
- Sep 30, 2003
- Messages
- 85
Hey all
I can easily calculate the duration between 2 dates and a time for the SAME day, e.g. 13/09/23 08:30 until 13/09/23 17:00 = 8.5 hrs. I'm struggling how to approach it when the days are different e.g. 12/09/23 13:25 until 14/09/23 12:17 = 46 hours and 52 mins.
Meaning I can work out the amount of time in hours and minutes between these 2 dates but this result would be based on a 24 hour day. I'd like to base it on an 8.5 hour day
Using the above example, I started at 13:25 and finished at 17:00 on 12/09, worked 8:30 until 17:00 on 13/09 and worked 8:30 until 12:17 on 14/09
Any suggestions would be greatly appreciated?
I can easily calculate the duration between 2 dates and a time for the SAME day, e.g. 13/09/23 08:30 until 13/09/23 17:00 = 8.5 hrs. I'm struggling how to approach it when the days are different e.g. 12/09/23 13:25 until 14/09/23 12:17 = 46 hours and 52 mins.
Meaning I can work out the amount of time in hours and minutes between these 2 dates but this result would be based on a 24 hour day. I'd like to base it on an 8.5 hour day
Using the above example, I started at 13:25 and finished at 17:00 on 12/09, worked 8:30 until 17:00 on 13/09 and worked 8:30 until 12:17 on 14/09
Any suggestions would be greatly appreciated?