Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compute average of several dates
Message
De
05/11/2004 10:26:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00958360
Message ID:
00958495
Vues:
19
>i mean there several day eg. 10.11.2004,09.09.2004,13.11.2004,06.10.2004 which date to be equal in these days between min date 09.09.2004 and max date 13.11.2004 ?
>
>TIA
Is this what you want?
m.ldmindate = min(date1,date2,date3,date4)
m.ldmaxdate = max(date1,date2,date3,date4)
m.ldavgdate = m.ldmindate + int((m.ldmaxdate - m.ldmindate)/2)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform