This topic is locked
[SOLVED]

 Datediff -- no round up

12/14/2012 12:32:14 PM
ASPRunnerPro General questions
M
mitzi author

Hello, I supposed this is an easy question to be solved:
I correctly execute this statement:
DATEDIFF("h", [StarTime], [EndTime]) AS TotalHrs,
but ASPrunner displays the date difference(in my case, hour difference) rounding the hours:
for example:
a startTime 12.00 pm. endtime 2:30 pm the TotalHrs column looks like "3" hrs - instead of 2.3 hrs.
what shall I do to correct it?
Thanks

M
mitzi author 12/14/2012

I think i got it:
DATEDIFF("n", [TimeField], [EndTime])/60 AS TotalHrs,
it returns the follwing:
starttime 12.00 endtime 12.30 result 0.5 hrs