![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using DateDiff format like DATEDIFF(hour,Start,End) and it gave me the result 12 hours. Start:- 22 Sep 2006 09:30:00 End:- 22 Sep 2006 21:00:00 Is there any way it will return me 11.5 instead of 12 because it start from 9:30 and end at 21:00 so it must be 11.5 not 12 hours right.... Can any one guid me how I can solve this. Thanks |
#3
| |||
| |||
|
|
I am using DateDiff format like DATEDIFF(hour,Start,End) and it gave me the result 12 hours. Start:- 22 Sep 2006 09:30:00 End:- 22 Sep 2006 21:00:00 Is there any way it will return me 11.5 instead of 12 because it start from 9:30 and end at 21:00 so it must be 11.5 not 12 hours right.... Can any one guid me how I can solve this. Thanks |
#4
| |||
| |||
|
|
hi use this way so u will get the correct answer: datediff(mi, from_time, to_time) / 60.00 ok got it Rogers wrote: I am using DateDiff format like DATEDIFF(hour,Start,End) and it gave me the result 12 hours. Start:- 22 Sep 2006 09:30:00 End:- 22 Sep 2006 21:00:00 Is there any way it will return me 11.5 instead of 12 because it start from 9:30 and end at 21:00 so it must be 11.5 not 12 hours right.... Can any one guid me how I can solve this. Thanks |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |