You need to sign in to do that
Don't have an account?
SF Master
Age Calculation
i am trying to caluclate AGE from Birthdate.
we have birthdate field now. ( contact standard filed) .what is the best way to calculate age. can i write some formulae or trigger.
please advice
Thanks.
You can do this in a Formula Field.
Formula is:
IF(MONTH(TODAY())>MONTH(Birthdate),YEAR(TODAY())-YEAR(Birthdate),IF(AND(MONTH(TODAY())=MONTH(Birthdate),DAY(TODAY())>=DAY(Birthdate)),YEAR(TODAY())-YEAR(Birthdate),(YEAR(TODAY())-YEAR(Birthdate))-1))
All Answers
You can do this in a Formula Field.
Formula is:
IF(MONTH(TODAY())>MONTH(Birthdate),YEAR(TODAY())-YEAR(Birthdate),IF(AND(MONTH(TODAY())=MONTH(Birthdate),DAY(TODAY())>=DAY(Birthdate)),YEAR(TODAY())-YEAR(Birthdate),(YEAR(TODAY())-YEAR(Birthdate))-1))
Thank you cory ....
this is simply Great its working awesome..
(TODAY() - Birthdate) / 365.25
This formula calculates the years between the current date (TODAY()) and the person's birthdate, considering leap years.