Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A twist on age calculation.
Message
 
 
À
31/12/2004 05:19:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00973330
Message ID:
00973590
Vues:
26
Hi Jim,

I see that you got your aanswers with Cetin's help.

>
>>Expanding on my previous observation, days applied first, month second and years last. I'm not sure is it better than previous one, though. :)
dob = GOMONTH(GOMONTH(dt-dd, - mm), -yy*12)
>
>Me neither ;-) I decided to test against some random dates and ages as below. It is surprising how seldom that the methods agree, and the variance is far wilder than I expected. Do you see anything wrong with what I am doing?
<snip>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform