clear markdown feedback
clear markdown feedback
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 3799027 fiddles created (41845 in the last week).

DECLARE @DESDE DATETIME, @HASTA DATETIME SET @DESDE = CONVERT(DATETIME,'25/08/2020 06:03:23',103) SET @HASTA = GETDATE() SELECT CONCAT(DATEDIFF(SS,@DESDE, @HASTA)/60/60,':',(DATEDIFF(SS,@DESDE, @HASTA)/60)-((DATEDIFF(SS,@DESDE, @HASTA)/60/60)*60),':',DATEDIFF(SS,@DESDE,@HASTA)%60) AS [HH:MI:SS]
HH:MI:SS
16094:49:27
 hidden batch(es)