title: How this query works to get first day of current month?
body: <pre><code>SELECT Dateadd(month, Datediff(month, 0, Getdate()), 0),
  'First Day of Current Month'
  </code></pre>
  
  <p>Can anyone tell me how this query works to get the first day of current month?</p>