Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
aakcse
Aged Yak Warrior
570 Posts |
Posted - 2010-06-25 : 11:10:37
|
| HI all,I want to get the output as hr:mi say for eg I have 2 dates whos diff is coming to 90 min using datediff when I divide it by 60 i'll get 1.5 but I want 1:30that is HH:MIThanks-Neil |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2010-06-25 : 11:47:07
|
CONVERT(CHAR(5), DATEADD(SECOND, DATEDIFF(SECOND, Date1, Date2), 0), 8) N 56°04'39.26"E 12°55'05.63" |
 |
|
|
aakcse
Aged Yak Warrior
570 Posts |
Posted - 2010-06-25 : 12:10:00
|
| thanks Peso-Neil |
 |
|
|
|
|
|