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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Years of Age to DOB

Status
Not open for further replies.

Nicos67

Programmer
Apr 28, 2004
52
GB
Hi All,

How do I convery clients years of age eg (41.3) into client Date of Birt in a query

Thanks Nicos
 
well I can't imagine how this calculation can be accurate.
After all, WHEN was the person 41.3 years old?

You can get a date using:

Dim Age as double, DOB as date
Age = 41.3

DOB = dateadd("yyyy",-1*(int(age),Date())-(365*(age-Int(age)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top