Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the age of a person?
Message
De
22/11/2002 09:21:03
 
 
À
22/11/2002 00:17:26
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00725626
Message ID:
00725731
Vues:
12
2 alternatives

lnAge = floor(int((val(dtos(tdDate)) - val(dtos(tdDOB)))+10000)/10000) - 1


lnAge = (year(tdDate) - year(tdDOB) - ;
iif( str(month(tdDate),2) + str(day(tdDate),2) < ;
str(month(tdDOB),2) + str(day(tdDOB),2), 1, 0) )


>Hi All:
>
>Given a birth day, say 11/02/56 or 11/02/1956, whats the best way to determine the current age of this person?
>
>Thanks in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform