Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate age 1

Status
Not open for further replies.

Pamy

MIS
Oct 15, 2002
29
0
0
SG
ANybody has the formula to calculate age based on DOB
 
Code:
aged = datediff("yyyy", DOB, date()) - iif(dateserial(year(date()), month(DOB), day(DOB))> date(), 1, 0)
 
?Anybody? More like EVERYBODY. Look for "DOB" and / or / "AGE" in search. You will get a lot of opinions, some even have partial explination(s) of their code.

MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Excellent example! Now how would you do it for years and days to today's date?
 
See earlier post. SEARCH. This topic has been 'beaten' and particularly recently. I BELIEVE that something on this SPECIFIC topic is posted as "basDob2AgeExt".


MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top