on 05-06-2008 12:27 PM
Hi All,
In my VC Application, there are 2 input fields. When an user enter value in the first input field, the time "T1" would be captured. Similarly, when user enters value in the second input field, that time "T2" would be captured.
T1 - 16:48:20
T2 - 16:50:25
In the third input field, i am calculating the difference of the 2 times and displaying the time as T3 = T1 - T2
IF(STORE@a=="1",#ID[ACA8Y9]@T1 - #ID[ACA8XV]@T2,"Null")
But though there is a time difference of 5 minutes between T1 and T2. I am getting T3 = 0.00
Why is it so? Is there any mistake in the expression. For every time difference, it is giving me the same time? Can any one please help me in resolving this issue?
Thanx and Regards,
Divya
Hi,
To find the Time differences use the Time Functions.
Put the formula TSUB(T1,T2,Units) in the Expression field of T3 .
then replace T1 with @time1 by draging from right side same as for T2 also then mention the Units i.e H or M or S depending upon which difference you need.
Ex:
Time1 = 14:30:45
Time2 = 12:45:15
Then Time3 = TSUB(@Time1,@Time2,'M') ==105.5
Regards,
Govindu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hI,
What is your actuall requirement ?
Is it time difference only right.
If yes why you are using if Condition?
and what is the purpose of next3 here?
if next3 contains always 1 then this formula has to return the time difference if not then it will return always Zero value i.e 0.00.
So put directly TSUB(#IDACA8XV@STR1,#IDACA8Y9@STR1,'S') in Expression filed of Time3 inputfiled i.e where you want to get the difference .
is it clear for you otherwise get back to me
Regards,
Govindu
Hello,
Yuo can't use the "-" operator on time, you should use the time functions in order to calculate the difference.
In your case you should use the TSUB function.
Regards,
Luba.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.