how to return date from datetime column code example
Example 1: sql datetime as date
SELECT
CONVERT(DATE, GETDATE()) date;
Example 2: sql server format datetime to short date
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )
SELECT
CONVERT(DATE, GETDATE()) date;
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )