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
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.