If I have a datetime field (like Birthdate) in Sql Server, and I want to convert that value to the total number of months up to now, how can I do this in T-Sql?
To be clear, I’m not looking for the monthpart of Birthdate, but rather this date converted to total number of months up to a certain date (lets take ‘now’ as an example).
1 Answer