convert date and time to just date in sql code example
Example: sql server format datetime to short date
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )