on 2014 May 28 9:15 AM
Hi All,
I have 2 date time fields intime and outtime.
Now I need to subtract in time from out time to get total working time.The result should be like this.
4.10
So I am doing like this.But getting the error like A number or currency,date fieled required.
Please help
ToText({Command.out_time}, "hh:mm") -ToText({Command.in_time}, "hh:mm")
Hi Kalyan,
Try this:
numbervar TotalSeconds := DateDiff("s",{Command.out_time}, {Command.in_time})
numbervar Hours := Truncate(TotalSeconds / 3600);
numbervar Minutes := truncate((TotalSeconds - (Hours * 3600))/60);
numbervar Seconds := Truncate(Totalseconds - (Hours * 3600) - (Minutes * 60));
Hours & ":" & Minutes
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.