Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the age of a person?
Message
 
To
22/11/2002 00:17:26
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00725626
Message ID:
00725630
Views:
16
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform