Hi
I have used the below code to calculate the difference between 2 datetime fields. The result is in seconds but I would like it to display hours and minutes and seconds if possible. I have tried SUM and also converet with just Time instead of datetime. Any ideas please
DATEDIFF(MINUTE,CONVERT(DATETIME,dbo.WTTReportHeader.StartTime,101),CONVERT(DATETIME,dbo.WTTReportHeader.EndTime,101)) as Timediff
I have used the below code to calculate the difference between 2 datetime fields. The result is in seconds but I would like it to display hours and minutes and seconds if possible. I have tried SUM and also converet with just Time instead of datetime. Any ideas please
DATEDIFF(MINUTE,CONVERT(DATETIME,dbo.WTTReportHeader.StartTime,101),CONVERT(DATETIME,dbo.WTTReportHeader.EndTime,101)) as Timediff