0
My database has a difference of 4 hours, support so far has not given a solution, so I would like to know how I can format the time out:
select
CAST(HORA_FECHAMENTO AS datetime) as HORA_FECHAMENTO,
CONVERT(VARCHAR(05), DATEADD(hour, +4, getdate()), 108) AS 'HORA'
from TB_ESTRACAO
where ID > 0
Exit:
1900-01-01 11:00:00.000 | 15:29
I need it that way:
11:00 | 15:29
Your answer is not correct
– Harry
i need the output of formatted information, you just took the sign from +?
– Harry
Ah, got it. I’ll edit the answer.
– Leonel Sanches da Silva
I think there was a communication problem, because I don’t want to concatenate the time,
– Harry
adjust the question
– Harry
True. Look now.
– Leonel Sanches da Silva