Hi Patric, With the help of function yearDiffiff () u can get the diff in year but there is no such function exist which calculate the difference of two dates in months.U have to write ur own method :
int daysCount; ; daysCount =(this.endDate - this.startDate)/365; return ((this.endDate - this.startDate)-(daysCount *365))/30; return type of this method is *integer* Regards Nitesh On 11/24/06, chuapatrickd <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there a functin in AX where it will compute for date difference. > Ex. Date1 = '01-01-2006', Date2= '06-20-2006' > Datediff in months should be 6. > > Any help will be greatly appreciated. > > Thanks, > Patrick > > > [Non-text portions of this message have been removed]