I don’t know why, but in my tests, a yaml key of:
date_finished: 2022-01-20
… does not work.
But if I add a random time element to the yaml entry, it does work:
date_finished: 2022-01-20 11:59
The following works as a complete note, with the yaml on the top line:
```
---
title: A book
author: Nap
date_finished: 2021-09-11 11:59
tag: booksread
---
```dataview
TABLE
title as Titel,
author AS Autor
FROM #booksread
WHERE contains(date_finished, "2021")
```
Angel