I have this code in SQL Server 2016
SELECT CONVERT (DATETIME, CONVERT(varchar(8), ExpiryDate)) I get this result:
ExpiryDate ------------------------ 2020-08-03 00:00:00.000 How can I remove the .000 (the milliseconds part)?
Expected result should be:
2020-08-03 00:00:00 Please help