I’ve got a column Start and column End. I want to get number of hours and minutes between them. Select cast(End – Start as varchar) gives strange results, for example 2009-07-24 06:16 – 2009-07-24 06:30 gives result 12:14AM… It is important to cast it as varchar because later I will be cutting substrings out of this string with right() and left(). How can I get the proper result?
Share
You can use the DATEDIFF function
This will give you the number of minutes between Start and End, you can then convert this to hours and minutes.