/ Published in: SQL
select cast(floor(cast(getdate() as float)) as datetime)
Expand |
Embed | Plain Text
http://microsoftmiles.blogspot.com/2006/11/remove-time-from-datetime-in-sql-server.html
You need to login to post a comment.
select cast(floor(cast(getdate() as float)) as datetime)
http://microsoftmiles.blogspot.com/2006/11/remove-time-from-datetime-in-sql-server.html
You need to login to post a comment.