Return to the RPG Tips
Date Math Made Easy
We've all seen the original ADDDUR (add date duration) and SUBDUR (subtract date duration or subtract two dates given a duration) opcodes. In i5/OS V5R1 (which is what IBM 'i' was called back then), IBM added a built-in function that simplifies SUBDUR and allows you to "just do it" when it comes to ADDDUR.
http://systeminetwork.com/article/date-math-did-you-know
The above link may require a free, or paid, registration to view the article.
[report a broken link by clicking here]