Avatar of hidrau
hidrau
Flag for Brazil

asked on 

how to add minutes to my hours?

Hello guys

I have this code:

declare @start_time time;
declare @elapse_time time;

set @start_time =  '13:30:00'
Set @elapse_time= '00:30:00'

SELECT DATEADD(mi, @start_time, @elapse_time)

Open in new window


How is the correct form?

thanks
Microsoft SQL Server

Avatar of undefined
Last Comment
hidrau

8/22/2022 - Mon