title: How to return only the year and month from a SQL Server DateTime datatype
body: <pre><code>SELECT GETDATE()
  </code></pre>
  
  <p>Returns: <code>2018-01-10 16:38:13.790</code></p>
  
  <p>I want that date part without the day and time part like <code>2018-01</code></p>
  
  <p>How can I get that?</p>