DAXSPOT

Wednesday, May 15, 2019

month Difference between two dates - X++

Hi,
Below small code will help to get the number months difference between two dates in ax 2012.
intvNo(fromDate, toDate, intvScale::Month);
intvScale has many values which can be used to get difference Day, Month, MonthDay, Quarter, Week, WeekDay, Year etc.

No comments:

Post a Comment

How to execute SQL directly form Dynamics AX X++

How to execute Sql directly form Dynamics AX X++ Reference by : alirazazaidi Dynamics Ax provide many other ways to communicate with databas...