How do you return tasks due today in dataviewjs?

Things I have tried

.where(t => t.due && t.due =='today')

It’s easy in dataview

where due = date(today)

What I’m trying to do

I just want to return the tasks that are due today.

I’m not versed in JS… but dates in JS are a really weird thing. :slight_smile:

But try this:

dv.taskList(dv.pages().file.tasks.where(t => t.due?.ts =='today').ts))

If you don’t want tasks grouped by pages (default groups), then you can use:

dv.taskList(dv.pages().file.tasks.where(t => t.due?.ts =='today').ts), false)
1 Like

Excellent! Thank you @mnvwvnm !

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