Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
That's a smiley way to start your day
Message
De
29/02/2000 13:14:47
 
 
À
29/02/2000 13:08:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00339259
Message ID:
00339280
Vues:
21
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform