I need to get Difference between two dates as HH:MM:SS format I tried this
Select UserId,StartTime,EndTime, DATEDIFF(HOUR, StartTime, EndTime) AS Hours,
DATEDIFF(MINUTE, StartTime, EndTime) AS Minutes,
DATEDIFF(SECOND, StartTime, EndTime) AS Seconds
from Responses
but it didn't work well because it calculates hours , minutes and seconds Separately. For example: if the minutes greater than 60 minutes it won't change the hour
1:70:00 instead of 2:00:00
I need when the minutes greater than 60 minutes adds a new hour and when the sconds greater than 60 sconds add a new minutes
Thank you,