I have two seperate fields as STARTTIME and ENDTIME, both are datatime datatype and I am using Crytstal reports XI.
Example:-
STARTTIME 02/10/2005 12:10:00 AM (this is a predefined in year 2005, but we need to take only the time)
ENDTIME 01/01/2008 11:30:00 PM (this is current year, so take just the time)
Now i need the ONLY the time difference between the both the time, like
TOTALTIME = STARTTIME - ENDTIME
= (12:10:00 AM) - (11:30:00 PM) = -11:20:00
Then I did convert them into 12:10:00 AM and 11:30:00 PM respectively using CTime
Now I should get the time difference between them as -/+ hh:mm:ss with a negative sign (-) if it’s late and a positive sign (+) if it’s before time.
please help....I need it badly. I tried using the datediff, it did not work since the STARTTIME date is in 2005.
I need only the time difference.
Thanks-in-advance,
Eve
Example:-
STARTTIME 02/10/2005 12:10:00 AM (this is a predefined in year 2005, but we need to take only the time)
ENDTIME 01/01/2008 11:30:00 PM (this is current year, so take just the time)
Now i need the ONLY the time difference between the both the time, like
TOTALTIME = STARTTIME - ENDTIME
= (12:10:00 AM) - (11:30:00 PM) = -11:20:00
Then I did convert them into 12:10:00 AM and 11:30:00 PM respectively using CTime
Now I should get the time difference between them as -/+ hh:mm:ss with a negative sign (-) if it’s late and a positive sign (+) if it’s before time.
please help....I need it badly. I tried using the datediff, it did not work since the STARTTIME date is in 2005.
I need only the time difference.
Thanks-in-advance,
Eve