Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the number of months between 2 dates ?
Message
De
25/11/1999 13:43:21
 
 
À
25/11/1999 12:19:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00295544
Message ID:
00295609
Vues:
20
>>How to get the number of monts when date1 is substracted from date2?
>
>Since months don't have fixed length, the QUAD method I use is:
>
>FUNC NumMonths
>LPARAMETER tdDate1, tdDate2
>RETURN ABS((YEAR(tdDate1)*12+MONTH(tdDate1)) - (YEAR(tdDate2)*12 + MONTH(tdDate2)))

Thank you Ed!
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform