Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the age of a person?
Message
 
À
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:
00725630
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>Given a birth day, say 11/02/56 or 11/02/1956, whats the best way to determine the current
>age of this person?

(DATE() - ldBirthday) / 365.24 should get you pretty close.

Failing that, you could do a loop with GOMONTH(ldBirthday, 12*i) until you get a date greater than the current one.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform