This utility allows you to calculate date, time & DateTime difference. The code explained in attached objects can be used during C/AL Code for calculating differences between dates.
Below is the Sample output of the attached objects. I am pretty sure that you would have or will face an situation where you can use it during C/AL Code.
For Details Read Here - http://saurav-nav.blogspot.in/2016/03/how-to-calculate-difference-between-two.html
Standard can do that, but it's a circus to get it done. Doesn't do it out of the box least, needs lots of code.
Hey Erik P. Ernst ,
Thanks for the suggestion.
Yes but the reason I used the Dotnet component is due to having a requirement of calculating No. of Month between two days :) Standard NAV Functions does not allow to do that.
In the Demo I used date time fields but the utility actually allow to calculate difference between -
& DateTime with various possible output options.
Good one. But think you should emphasize that it's comparing two DateTime fields, not just two Date fields, as they can be calculated just by Date - Date2.