Per SQL Server 2005 e versioni precedenti:
CONVERT(varchar(8), @ParamDate, 112) -- Supported way
CAST(FLOOR(CAST(@ParamDate AS float)) AS DATETIME) -- Unsupported way
Per SQL Server 2008 e versioni successive:
CAST(@ParamDate AS DATE)
Per SQL Server 2005 e versioni precedenti:
CONVERT(varchar(8), @ParamDate, 112) -- Supported way
CAST(FLOOR(CAST(@ParamDate AS float)) AS DATETIME) -- Unsupported way
Per SQL Server 2008 e versioni successive:
CAST(@ParamDate AS DATE)