convertir la date à DateTime SQL
-- 2 ways
SELECT CONVERT(datetime, '2021-01-01');
SELECT CAST('2021-01-01' AS datetime);
ekkamrit
-- 2 ways
SELECT CONVERT(datetime, '2021-01-01');
SELECT CAST('2021-01-01' AS datetime);
SELECT convert(datetime, '09/10/2019', 101);
SELECT CONVERT(date, getdate());