Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A twist on age calculation.
Message
 
 
To
31/12/2004 05:19:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973330
Message ID:
00973590
Views:
25
Hi Jim,

I see that you got your aanswers with Cetin's help.

>
>>Expanding on my previous observation, days applied first, month second and years last. I'm not sure is it better than previous one, though. :)
dob = GOMONTH(GOMONTH(dt-dd, - mm), -yy*12)
>
>Me neither ;-) I decided to test against some random dates and ages as below. It is surprising how seldom that the methods agree, and the variance is far wilder than I expected. Do you see anything wrong with what I am doing?
<snip>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform