mtagliaferri
Registered User.
- Local time
- Today, 06:29
- Joined
- Jul 16, 2006
- Messages
- 550
Hi All,
I have a form with a field with the following calculated time:
This works fine, however I have an issue with the format; if the result is 5 hours 20 minutes the result will be 5:20, however if the result is 5 hours and 2 minutes then the result is 5:2.
How can I return a result for 5 hours and 2 minutes as 5:02 (even better 05:02)?
I have a form with a field with the following calculated time:
Code:
=DateDiff("n",[DtStart],[DtEnd])\60 & ":" & DateDiff("n",[DtStart],[DtEnd]) Mod 60
This works fine, however I have an issue with the format; if the result is 5 hours 20 minutes the result will be 5:20, however if the result is 5 hours and 2 minutes then the result is 5:2.
How can I return a result for 5 hours and 2 minutes as 5:02 (even better 05:02)?