Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding 1 year to a date
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00430291
Message ID:
00430554
Vues:
15
>>GOMONTH() has been around since FPD 2.5 at least. DATE() with numeric parameters didn't appear until VFP 6.0.
>
>Ok, then I'm a dork. I was just going by an above post saying VFP 6 had GoMonth(), oh well, thought I'd try a different solution.

Not to beat up on you, but the diffferent solution would also fail for leap day this year. In my first Computer Science in college, the final assignment was to generate a calendar. The instructor really gave us the solution with Zoeller's (sp?) Congruence. Been a wise-ass, I asked him if it was OK if I developed my own algorithm (I mean, really, he gave us the answer). So I've had a lot a fun fooling around with dates. You could use another method (other than GOMONTH() for this one), but believe me, it wouldn't be pretty. So...

Would you prefer "Mr. Dork"?:-)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform