Answers for "How to Remove milliseconds from Date time"

SQL
0

How to Remove milliseconds from Date time

-- SQL Server
declare @dt datetime
set @dt = '2020–02–21 11:22:32.000'
select @dt as ts, convert(varchar,@dt,120) as newts
Posted by: Guest on October-27-2021

Code answers related to "How to Remove milliseconds from Date time"

Code answers related to "SQL"

Browse Popular Code Answers by Language