SQL Server Convert String até a data
select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;
MzanziLegend
select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;