Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding whole years to a date (code/function request)
Message
 
À
29/01/2003 11:11:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00746716
Message ID:
00746734
Vues:
20
>I want to know if someone has a neet function to add/substract whole years to a date or datetime. It needs to take into account leap years and check that it doesn't produce illegal dates (ex: add 5 years to Feb 29 2004).
>
>I know I could code the long way - but is there some FOXPRO function (foxpro has a function for everything) or ellegant snippet that I can use.
>
>Thanks from frigid Ottawa Canada


will gomonth() work?

GOMONTH(DATE(),12)
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform