Connecting Tech Pros Worldwide Forums | Help | Site Map

count months between two dates

Newbie
 
Join Date: May 2007
Posts: 1
#1: May 16 '07
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....

Moderator
 
Join Date: Nov 2006
Location: Boston, USA
Posts: 505
#2: May 17 '07

re: count months between two dates


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