Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating age...
Message
From
14/12/1999 17:20:56
 
 
To
14/12/1999 15:34:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00303614
Message ID:
00303706
Views:
13
>Will this always work?
>
>age = int((date() - ctod(dtoc(birthday)) / 365.25)
>
>That is to say, will the age always look right to a user?
>
>I'm concerned about people born march 1 of a leap year and people born 12/31/{year before leap year}
>
>Is there a better way to calculate the age?
>
>Thanks! :-)

I published an AGE() function which you're welcome to use if it works for you. It's available on my FoxPro Developer's webpage at http://www.prairienet.org/ita/foxpage.htm.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform