Using dataview to list based on property date instead of "file.cday"

What I’m trying to do

Like it says in the title, I want to view a simple list of my “today” notes, but instead of using the creation day of the file itself, I want to list based on a “date” property. I want to do it this way because I sync my vault with Syncthing and, at least for me, Syncthing is not syncronizing files metadata, such as creation date. So when I use this:

LIST
WHERE file.cday = this.file.day

it works for sometime but everything should be synced “today” for this to work because if there is one day the other devices didn’t sync, when they do, they’ll recognize a “new file”, so they’ll have a file “created today”.

Things I have tried

I tried the code below and this, which it’s supposed to work but it doesn’t display anything.

LIST
where fecha = "2025-03-17"

All of my notes have this “fecha” property (“date” in spanish). What am I doing wrong?

First, you need to define what is “2025-03-17”, like this: date(2025-03-17). Try …

```dataview
LIST
where fecha = date(2025-03-17)
```

Cheers, Marko :nerd_face:

1 Like

Wow, that was easy. And it works in my template using WHERE fecha = date({{date:YYYY-MM-DD}}).

THANKS!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.