Larry,
When you're working with whole months the GoMonth() function in a "Do While" loop works great. If your dates aren't exactly a month apart you can still use GoMonth() and simply include (or exclude depending on your app) portions of months.
HTH
Barbara
>We need to determine exactly how many months difference there is between 2 dates in VFP
>Example:
>01/01/2001 - 03/01/2001 = 3 months
>
>We are currently trying the following:
>x=date1 (01/01/2001)
>y=date2 (03/01/2001)
>z=y - x
>b=z/365*12
>c=b +1
>
>result=int(c)
>
>The problem we are running into is short months
>
>
>Larry