convert sql datetime to date code example
Example 1: convertir datetime a date
declare @fecha datetime
set @fecha = GETDATE()
select convert(date ,@fecha)
Example 2: sql server format datetime to short date
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )