I've tried to calculate the number of months using datediff
in SQL Server, but when I calculate:
Select DATEDIFF(Month,'1/1/2019','12/31/2019')
It returns 11 so I increment the value by 1 to be 12. But when I calculate:
select DATEDIFF(Month,'11/19/2019','11/18/2020') + 1
it returns 13 and that's wrong.