How can I truncate a datetime in SQL Server?
This continues to frequently gather additional votes, even several years later, and so I need to update it for modern versions of Sql Server. For Sql Server 2008 and later, it’s simple: Note that the last three paragraphs near the bottom still apply, and you often need to take a step back and find a … Read more