SQL Server 2005 以前の場合:
CONVERT(varchar(8), @ParamDate, 112) -- Supported way
CAST(FLOOR(CAST(@ParamDate AS float)) AS DATETIME) -- Unsupported way
SQL Server 2008 以降の場合:
CAST(@ParamDate AS DATE)
SQL Server 2005 以前の場合:
CONVERT(varchar(8), @ParamDate, 112) -- Supported way
CAST(FLOOR(CAST(@ParamDate AS float)) AS DATETIME) -- Unsupported way
SQL Server 2008 以降の場合:
CAST(@ParamDate AS DATE)