Slipstick Systems Outlook and Exchange Solutions Center



Click here to subscribe
to our biweekly
EMO newsletter
EMO back issues






To calculate the age of an Outlook contact

Home > User Issues > Contacts > Calculate age

This code for an Outlook formula field on a Contact item or in a Contacts folder gives you the "real age" for everyone except those fortunate few born on Feb. 29 in a leap year:

IIf([Birthday]<>"None",DateDiff("yyyy",[Birthday],Date())-IIf(DateDiff("d", CDate(Month([Birthday]) & "/" & Day([Birthday]) & "/" & Year(Date())),Date())<0,1,0),"")

DateDiff by itself is inadequate, because it will round up if the birthday has not yet occurred during the current year.

More Information

  •  Microsoft Outlook Contacts Issues
  • Updated Apr 09 2008

    Copyright Slipstick Systems. All rights reserved.
    Send comments using our Feedback page

    Home | What's New | Exchange Server | Outlook | Utilities | Bookstore
    About Slipstick | Feedback | Privacy Policy | Site Map | Archived Pages | Link to Us | Advertise