|
SQL Server versions prior to 2008 did not provide Date and Time data types. Below is a solution for SQL Server 2005 and 2000 that will strip time off a DateTime data type value. SELECT DATEADD ( DAY , DATEDIFF ( DAY , 0 ,[ DateTime] ), 0 ) Example Use...
|