Filtering tasks by note date

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.

If you are using templater, you can use tp.date.now which will automatically use the current date when creating the note.

Source : tp.date - Templater

Hello,

I know, thank you for the suggestion. But I was hoping there’s a way to do this with Tasks.

I haven’t made extensive use of that plugin so I could be wrong, but task plugin’s own documentation mentions using other plugins to accomplish what you want. Daily Agenda - Tasks User Guide - Obsidian Publish

For your approach, maybe New Plugin: Embed Metadata might work? I haven’t used it myself though.

I’ll look into that, thanks!