Bases : trying to get year out of propery date

Hello.

If you copy and paste the text below into a new note, does it help as an example Base for you to work with?

---
dob: 1934-06-11
dod: 2009-08-25
---
```base
formulas:
  age: today() - dob
  years since death: today() - dod
  age when died: dod - dob
properties:
  formula.age:
    displayName: age today
views:
  - type: table
    name: Table
    filters:
      and:
        - "!dob.isEmpty()"
    order:
      - file.name
      - formula.age
      - formula.age when died
      - formula.years since death
    sort:
      - property: formula.age when died
        direction: ASC
    columnSize:
      file.name: 164
      formula.age: 135

```

And below is a link to a more detailed Base for birthdays:

Reddit – Birthday Base

2 Likes