title: SQL Server DATEDIFF Function get wrong Values
body: <p>This function bring wrong values </p>
  
  <pre><code>select DATEDIFF(MONTH,'09-01-2014','08-31-2016')
  Result:23
  it must be :24
  
  select DATEDIFF(MONTH,'01-01-2014','08-31-2016')
  Result:31
  it must be :32
  
  select DATEDIFF(MONTH,'07-01-2013','06-30-2016')
  Result:35
  it must be :36
  </code></pre>
  
  <p>Is it wrong or I missed somthing ??
  any way to solve this problem ? </p>