Linking daily notes to previous and next days

Yes, you can download Brian’s templates by signing up here:
https://bryanjenkstech.ck.page/d4ec0713d5

However, I prefer a different solution. The issue with that method is that it only links to yesterday relative to when you issue the command, not yesterday relative to that particular daily note. So you have to be very careful when you create the notes. And if like me you look at future daily notes or assign tasks to future daily notes (such as to Aug 29), the yesterday and tomorrow links in that note will be 15th and 17th of Aug not 28th & 30th of Aug.
My preferred method creates yesterday and tomorrow’s links relative to the daily note itself, not to when I type or create it. You need to download the community plugins Templater & Calendar to make it work, and I’d strongly recommend you also download Periodic Notes and disable the core plugin Templates.
Here’s the code to put in a template note:

[[<% tp.date.now(“YYYY-MM-DD”, -1, tp.file.title, “YYYY-MM-DD”) %>|Yesterday]] <% tp.file.title %> [[|Tomorrow<% tp.date.now(“YYYY-MM-DD”, 1, tp.file.title, “YYYY-MM-DD”) %>]]

I also like to put a link to that daily notes weekly note, monthly note and yearly note:

WEEK - [[<% tp.date.now(“GGGG-[W]WW”, 0, tp.file.title, “YYYY-MM-DD”) %>]]

MONTH - [[<% tp.date.now(“YYYY-MM”, 0, tp.file.title, “YYYY-MM-DD”) %>]]

YEAR - [[<% tp.date.now(“YYYY”, 0, tp.file.title, “YYYY-MM-DD”) %>]]

8 Likes