Posts by Andreas Cauê • 51 points
1 post
-
5
votes5
answers64148
viewsA: Difference between two dates in days, hours, minutes and seconds
This code is wrong in the calculation of the time difference. The time difference should be like this: + RIGHT('00' + CONVERT(VARCHAR, DATEDIFF(MINUTE, @antes, @depois) / 60), 2) + ':' For in the…