Things I have tried
I’ve looked thru the Dataview docs and the dates format reference on momentjs.
What I’m trying to do
I keep notes on people important to me (one note per person) that includes their date of birth in the frontmatter, like this:
dob: 1990-12-01
Now, in my daily notes template, I am trying to add a query that will automatically tell me if someone has a birthday on that date. Here is what I’ve got so far:
LIST
FROM #Person
WHERE dob = date({{date:YYYY-MM-DD}})
SORT file.name ASC
This works only if the person’s date of birth is exactly the same as the Daily Notes date, which isn’t what I need. (Side-note, I used the date template rather than date(today) because I often create Daily Notes in advance to its day.
I tried to get the query to only return if the month and day matched, like this:
WHERE dob = date(.*{{date:MM-DD}})
but that didn’t work.
So, my question is, can anyone help me figure this one out?
Thanks all