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:
00430570
Views:
8
>>You could use another method (other than GOMONTH() for this one), but believe me, it wouldn't be pretty. So...
>
>?iif(day(dDate + 365) < day(dDate), 366, 365) + dDate
>
>Thats not too bad.

Close, but no cigar. GOMONTH(DATE(2000, 2, 29), 12) returns 02/28/2001. This returns 3/1/2001.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform