Hello everyone, I think I am missing something…I wrote three dataviewjs queries to group up meeting notes: “Past Meetings”, “Upcoming Meetings” and “Today’s Meetings”.
This is the query I use for “Past Meetings” that works:
const {fieldModifier: f} =
this.app.plugins.plugins["metadata-menu"].api;
dv.table(['Meeting', 'Type', 'Attendees', 'Date'],
dv.pages('')
.where(p => p.fileClass == 'meeting')
.where(p => p.date < dv.date('today'))
.filter(p => !p.file.path.includes('Templates'))
.filter(p => !p.file.path.includes('Classes'))
.map(p => [
p.file.link,
f(dv, p, "type"),
f(dv, p, "attendees"),
f(dv, p, "date")
])
)
I wrote the same thing for “Upcoming Meetings” by changing the following line and it works:
.where(p => p.date > dv.date('today'))
The problem is for “Today’s Meetings”. I tried by changing the same line as the following:
.where(p => p.date == dv.date('today'))
But it doesn’t work. Any ideas??
Thank you!