# Formula to calculate age from a birthday date

**URL:** <https://community.nocodb.com/t/formula-to-calculate-age-from-a-birthday-date/751>\
**Category:** Formulas\
**Created:** [February 13, 2023, 7:31pm UTC](https://community.nocodb.com/t/formula-to-calculate-age-from-a-birthday-date/751 "2023-02-13T19:31:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rea](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/rea/32/321_2.png) [@Rea](https://community.nocodb.com/u/Rea)\
**Post date:** [February 13, 2023, 7:31pm UTC](https://community.nocodb.com/t/formula-to-calculate-age-from-a-birthday-date/751/1 "2023-02-13T19:31:00Z")

</div>

New to nocodb here and still not familiar with the formula syntax, I can’t figure out a way to make it work.  
So far I have this:

```auto
DATETIME_DIFF(NOW(), {BIRTHDAY_COL}, "y")

```

thank you for any guidance 🙂

---

<div class="post-metadata">

**Author:** ![kylee\_nocodb](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kylee\_nocodb](https://community.nocodb.com/u/kylee_nocodb)\
**Post date:** [February 14, 2023, 4:13pm UTC](https://community.nocodb.com/t/formula-to-calculate-age-from-a-birthday-date/751/2 "2023-02-14T16:13:06Z")

</div>

This should work if BIRTHDAY\_COL is a Date type.  
When you edit the formula, does it show any errors?

Learn more about Date formulas: [Formulas - NocoDB](https://docs.nocodb.com/setup-and-usages/formulas/#date-functions)
