I have a string \'2009-06-24 09:52:43.000\', which I need to insert to a DateTime column of a table.
But I don\'t care about the time, just want to insert it as 2009-06-
An enhancement to the unsupported version: I am not sure if this may effect any performance. getdate() is an input timestamp in my query.
getdate()
select cast(cast(getdate() as DATE) as DATETIME)