Things I have tried
dv.taskList(dv.pages(#tag1 AND #tag2).file.tasks
.where (t=>t.completed)
.where (t=>t.completion => t.userDefinedDate1)
.where (t=>t.completion <= t.userDefinedDate2))
The text below the following the ‘<’ turns red and the lines
What I’m trying to do
I want to return the tasks that were completed between userDefineDate1 and userDefinedDate2.
Craig
2
I see two syntax issues with your query:
- The phrase “#tag1 AND #tag2” needs to be in quotes.
- The greater-than-or-equal-to symbol is “>=”, not “=>”.
```dataviewjs
dv.taskList(dv.pages("#tag1 AND #tag2").file.tasks
.where (t=>t.completed)
.where (t=>t.completion >= t.userDefinedDate1)
.where (t=>t.completion <= t.userDefinedDate2))
```
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.