count months between two dates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alicia
    New Member
    • May 2007
    • 1

    count months between two dates

    somebody please help me....
    i want to create function to count a number of mount between 2 date.
    in microsoftsql we can use datediff(month, fromdate,todate ) , or in oracle we use monthbetween... .what about in postgresql ?
    or somebody can write for me the function please ?
    thanks a lot....
  • michaelb
    Recognized Expert Contributor
    • Nov 2006
    • 534

    #2
    Look at the Date/Time functions, if you have any questions post your code and we'll help you.

    Comment

    Working...