select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;
-- 2 ways
SELECT CONVERT(datetime, '2021-01-01');
SELECT CAST('2021-01-01' AS datetime);
SELECT convert(datetime, '09/10/2019', 101);
SELECT convert(datetime, '09/10/2019', 101);
declare @Existingdate datetime
Set @Existingdate=GETDATE()
Select CONVERT(varchar,@Existingdate,103) as [DD/MM/YYYY]