Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding 1 year to a date
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00430291
Message ID:
00430576
Views:
11
>Close, but no cigar. GOMONTH(DATE(2000, 2, 29), 12) returns 02/28/2001. This returns 3/1/2001.

Hmmmm, so you're going to side with GoMonth on this one, huh? :-)

I think it makes more sense to go to 3/1. If we use logic, isn't:

"A year after 2/29"

equal to:

"A year and a day after the day before 2/29"

?
That would be 2/29 sometimes, 3/1 others :-)

The real problem is trying to go multiple years with teh 366, 365 thing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform