on 2015 Jul 23 12:19 PM
Hi,
I have two fields
In Time : 10:45:20
Out Time : 18:48:20
Difference : 8 hours 3 minutes
So what will be the formula to calculate the difference?
The In Time and Out Time fields are in string format.
Thanks.
Request clarification before answering.
Hi Saurabh,
Since this is a string field, here's what you need to do:
NumberVar TotalSec := Time({@In Time}) - Time({@Out Time});
NumberVar Hours := Truncate ( TotalSec / 3600);
NumberVar Minutes := Truncate (Remainder ( TotalSec,3600) / 60);
Totext ( Hours, '####') + ':'+ Totext ( Minutes,'00');
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Gurpreet Goraya, you should create a new question as this particular one has been answered already...and is quite old. In the new question though please include the formula syntax that you are using, show the current output on your report, and also indicate what you think the output should be, and why. Regards, -jamie
User | Count |
---|---|
72 | |
18 | |
10 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.