Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of months between two dates
Message
De
06/11/2002 14:23:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00719472
Message ID:
00719483
Vues:
15
>Michel,
>
>Try something like this, I have not tested this very much, but it appears it may work.
>
>lnmonths = MONTH(enddate) + ((YEAR(enddate) - YEAR(stdate)) * 12) - MONTH(stdate)

Yes, Tracy already pointed me to a cool routine.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform