Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does 4GL generate invalid dates when it performs arithmetic with months?

0
Posted

Why does 4GL generate invalid dates when it performs arithmetic with months?

0

When 4GL adds months to a date, it sometimes ends up with a invalid date: January 31st + 1 UNITS MONTH = February 31st Doh! There is no February 31st! There are those who argue that 4GL should evaluate the above to February 28th (or 29th if it’s a leap year), and others who feel it should return a date sometime in early March. The fact is that it doesn’t make either of these decisions for you, and it never will. Write your own routine instead, and make it do whatever your business considers most appropriate. jparker@boi.hp.com (Jack Parker) wrote: Some of you will run into this today…..

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123