I need to get total number of months in select query.
My table name is "Customers" and column name is "Createddate".
I need to calculate number of months between "Createddate" to current date.
Thanks in advance.
select datediff(month, createddate, getdate())
from customers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With