I have a select query that has DURATION column to calculate number of Minutes . I want to convert those minutes to hh:mm format.>
DURATION
hh:mm
For those who need convert minutes to time with more than 24h format:
DECLARE @minutes int = 7830 SELECT CAST(@minutes / 60 AS VARCHAR(8)) + ':' + FORMAT(@minutes % 60, 'D2') AS [Time]
Result:
130:30