Calculating age from a birth date in Access using ddmmyyyy format.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to calculate age from a birth date in Access (or Excel) 2002
using ddmmyyyy format or do we all have to conform to US standards to use
this function?
 
I don't know which function you are speaking of, Access doesn't have a
built-in Age function. However, depending on what you're doing, the
calculation may need to be done in US format, but once you've finished the
calculation you can format it as desired.
 
Use the following expression to return the age:

DateDiff("yyyy", [DOBField], Date()) + (Date() < DateSerial(Year(Date()),
Month([DOBField]), Day([DOBField])))

R. Hicks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top