I have starttime and endtime columns in my table and I want to get time difference between the two. But however I want the difference in hh:mm:ss format which I am not getting.
Declare @starttime = '7/23/2020 3:30:02 PM'
Declare @endtime = '7/23/2020 3:30:07 PM'
Select cast(@starttime - @endtime as Time) As Timedifference
I get 00:00:05.000000 which I don't want.