Answers for "min:sec datediff mssql"

SQL
0

min:sec datediff mssql

declare  @date1 datetime, @date2 datetime
set @date1=DATEADD(s,-638,getdate())
set @date2=GETDATE()

select convert(char(8),dateadd(s,datediff(s,@date1,@date2),'1900-1-1'),8)
Posted by: Guest on April-08-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language