
13 Apr
2004
13 Apr
'04
11:44 p.m.
On Tue, 13 Apr 2004 16:26:52 -0700 "Powell, Gary" <powellg@amazon.com> wrote:
That would surprise me as well.
date = January 30;
add_month(date); add_month(date);
date == March 30 ? Not March 28/29 No?
Which means of course a lot of state has to be held by date, because otherwise February does rounding. As in the number of days until the end of the month.
Or, instead, you use something like... date = January END or LAST; meaning the last day of the month. Then, adding a month would always jump to the last day of the next month. I imagine with... date = February 28; add_month(date); you would want March 28, and not March 31???