Date related problem
I've Fromdate and Todate stored in SQL 2000 server, wherein both are of DateTime field.
Through my application written in jsp, I insert both date and time in each of these fields
I want the difference of these two dates in the form of Hours. I tried DateDiff function of SQL Server, but it gives 0, if both FromDate and ToDate are having the same day.
i.e if FromDate is '23-05-2007 11:30::00'and
ToDate is '23-05-2007 12:30:00', I need to get the difference as 1 hour, but it is returning 0.
Is there any other function in SQL, which I can use in query OR is there any other method in jsp to achieve this task, after fetching the results from database?

