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