Is there a function that will give me the number of months, as an integer, in Pg 7.4.x? I found the date_trunc function but that will return text and I didn't see anything else?
I have this, but didn't want to duplicate the work if it wasn't necessary: