ms sql convert datetime to date code example
Example 1: sql datetime as date
SELECT
CONVERT(DATE, GETDATE()) date;
Example 2: SQL Date Format
SELECT FORMAT(dbo.column, 'M/dd/yyyy')
SELECT
CONVERT(DATE, GETDATE()) date;
SELECT FORMAT(dbo.column, 'M/dd/yyyy')