0 votes
in Rock by MarissaEubanks (4.0k points)
edited

How do we calculate how old someone was when they died?

2 Answers

0 votes
by MarissaEubanks (4.0k points)
edited
 
Best answer

{% assign age = BirthDate | DateDiff:DeathDate, 'Y' %} 
{% if age > 0 %}
{{ age }}
{% endif %}

0 votes
by TinaReusch (570 points)
edited

You'll need to make sure to set DeathDate above that code. This could be done in a workflow or from a person attribute, etc.

Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...