I am having trouble comparing two dates. I'd like to get the difference in number of days between two dates. The problem right now is that it is returning the difference in hours. Say that I have a date1, 2011-10-01 18:00:00, and a date2, 2011-10-02 06:00:00. I would here like to get the result 1 day difference back. Instead, I get 12 hours difference. I tried using the interval, showing the difference on the format 'dd'. I thought it would automatically round the hours to one day, but instead it just shows 0.
Please help me find this out. I attach the file, where the two values to be compared are column 4 and 5, as can be seen in the expression 'Daily Diff'.