Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date of Birth to Age
Message
From
02/09/2005 07:49:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01045983
Message ID:
01046156
Views:
21
>How can I convert a Date of Birth to an age?

If you need only age (in years), this will work:
dob = {12/23/1968}
age = Int((Val(Dtos(Date())) - Val(Dtos(dob)))/10000)
? age
Grigore Dolghin
Class Software.
Previous
Reply
Map
View

Click here to load this message in the networking platform