Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Age calculations
Message
From
22/01/1999 14:51:52
 
 
To
22/01/1999 13:50:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00179005
Message ID:
00179184
Views:
25
>>>greetings to all
>>>
>>>i need the code for calculating the age as follows:
>>>i habe a field where we input the date.
>>>i need to calculate the age on another field based on the current date
>>>
>>>any ideas?
>>>
>>>regards
>>
>>Hi Mike,
>>
>>...and one more for you:
>>lnyears = YEAR(DATE()) - YEAR(ldDateofBirth)
>>IF GOMONTH(ldDateofBirth, lnyears * 12) > DATE()
>>  lnyears = lnyears - 1
>>ENDIF
>
>How about an FAQ entry guys? This one comes up all the time.

Hmmm ... I figured there was one by now from Vlad or George or one of the guys that has given these equations out so many times.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform