Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to calculate exact months and days btwn 2 dates
Message
De
13/09/2004 13:50:11
 
 
À
13/09/2004 13:19:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00941652
Message ID:
00941658
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>how to calculate exact months and days btwn 2 dates ?
>Rajesh
try this :
LPARAMETERS td1 , td2 

x1=YEAR(td1)*12+MONTH(td1)
x2=YEAR(td2)*12+MONTH(td2)
numMonth=x2-x1
numDays=td2-GOMONTH(td1 ,numMonth)

RETURN TRANSFORM(numMonth)+","+TRANSFORM(numDays)
Peter
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform