I have a frontmatter field (Day) where I assign a value (“Mon”, “Tues” etc)
I want to query the value from dataview in a daily note.
The following query works and finds the file
table
from "02-School/-Lessons"
where Week = date(today).weekyear AND Day = "Thu"
I want to generalise the query so it returns the specific day automatically as “Mon”, “Tue” etc for the specific date. I have tried the following and it does not work.
table
from "02-School/-Lessons"
where Week = date(today).weekyear AND Day = dateformat(date(today), "ddd")
I suspect I am making a fundamental syntax error and would be grateful of help on the error I am making.