What I’m trying to do
Hello. I’m trying to create a task view where I filter notes based on the note date property. As implied, the date is stored as a note property.
---
date: 2026-01-26
---
Things I have tried
So I first tried the obvious:
```tasks
created before 2026-01-26
```
That works as expected. But rather than having to add this by hand every time, I’d like it to fill in automatically. Of course, this could be done through the Templater plugin, but this introduces some other issues, such as needing to specify the date before running the Templater script, and then the value won’t change if I change the date.
So this should be able to work with Tasks. I tried this:
```tasks
created before task.file.property('date')
```
That should work according to Tasks user guide on the Obsidian properties page, but it doesn’t. I tried adding function in front of task.file.property, still no luck. Also tried query.task.file.property, same result.
So what is the proper syntax for using file properties in task queries?
Thanks.