Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the age of a person?
Message
From
22/11/2002 09:21:03
 
 
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:
00725731
Views:
11
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform