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

calculate age

Status
Not open for further replies.

HRHK

Programmer
Jun 5, 2005
83
US
How do I correctly calculate age from data of birth in CR?
I can do following in Access but CR doesn't recognize the format function. Thanks.

DateDiff("yyyy",{my_age.birth_dte} , Now())+Int(format(Now(),"mmdd")<Format({my_age.birth_dte},"mmdd"))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top