Hey Everyone!
I searched a bit for a way to pull today’s daily note and the last weekly note with Dataview and got a bunch of conflicting information and ChatGPT was only so helpful (though it did sort of point me in the right direction).
After tinkering with it a bit I figured it out (at least I think).
Get The Daily Note
`="[[" + dateformat(date(today), "cccc-MMM-dd-yy") + "]]"`
- Have to convert
dddd-MMM-DD-YY
tocccc-MMM-dd-yy
in Luxon. - I think this one should work, but we’ll see tomorrow!
Get The Last Weekly Note
`="[[" + dateformat(date(today) - dur(1 day), "yyyy-'W'-WW") + "]]"`
- Have to convert
YYYY-[W]-ww
toyyyy-'W'-WW
like above. - Works as of Tuesday Oct 29 2024 - it correctly pulls week 44s note.
Anyway, I thought I’d post it here in case this helps anyone out.
Cheers!