Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
That's a smiley way to start your day
Message
From
29/02/2000 13:14:47
 
 
To
29/02/2000 13:08:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00339259
Message ID:
00339280
Views:
20
>>dRenewDate = GOMONTH(dExpireDate,12)
>
>As I replied to Fred, it returns Feb 28 and not March 1. Since there isn't a 29 next year, isn't suppose to return March 1?

No, it should return the last day of the month of February, otherwise, you could either claim 1 year = 365 days, or build logic on the level of:
LPARAMETER dDate
DaysInYear = 365
If intervening valid Feb 29
   DaysInYear = 366
ENDIF
RETURN dDate + DaysInYear
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform