Tasks plugin: How to deal with custom date format in filename

Hi,

I use “YYYY-MM-DD ddd” as date format in the title of my periodic notes.
For my tasks I usually don’t use due dates, I write my tasks in the according daily note instead.

So when I want to filter my tasks-query to all undone tasks before today, I have to refer to the filename and not to a due date… I assume I have to use “filter by function” instead of “before today”, like I did here, which leads to an error:

```tasks
folder includes Periodic notes
before today
not done
group by filename reverse
```

Can you please help me with the application of “filter by function”?

Thanks in advance,
SiliasOS

Hi,

now I changed the date format of my daily notes to “YYYY-MM-DD” - I feared that it will lead to confusion anyways… and set the filename as default date, like it’s explained here:

I changed the query to:

```tasks
folder includes Periodic notes
scheduled before today
not done
group by filename reverse
```

Now everything works as it should :slight_smile:

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