Answers for "how to drop mili second in sql"

SQL
0

how to drop mili second in sql

declare @X datetime
set @X = '2012-01-25 17:24:05.784'
select convert(datetime, convert(char(19), @X, 126))
Posted by: Guest on October-27-2021
0

how to drop mili second in sql

select dateadd(millisecond, -datepart(millisecond, @X), @X)
Posted by: Guest on October-27-2021

Code answers related to "how to drop mili second in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language