title: T-SQL to trim a datetime to the nearest date?
body: <p><strong>Duplicate of</strong> <em><a href="https://stackoverflow.com/questions/2775">What's the BEST way to remove the time portion of a datetime value (SQL Server)?</a></em></p>
  
  <p>I have a column that tracks when things are created using a datetime, but I'd like to generate a report that groups them by day, so I need a way of nulling out the time component of a datetime column.</p>
  
  <p>How do I do this?</p>