cast a datetime parameter in sql datetime to date code example Example: sql datetime as date SELECT CONVERT(DATE, GETDATE()) date;