Linking tomorrow's daily note


I am looking to have a dashboard with today’s daily notes, as well as tomorrow’s. I found out how to link today’s, but how about tomorrow’s?


I found this on Medium:

[[<%“YYYY-MM-DD”, -1, tp.file.title, “YYYY-MM-DD”) %>|↶ YESTERDAY]] ⁝ [[<%“YYYY-MM-DD”, 1, tp.file.title, “YYYY-MM-DD”) %>|TOMORROW ↷]]


What are you using to link to the daily note now? As it’s in a dashboard note, I’m guessing a dataview js inline query? Maybe?

If you use Dataview and have inline JS queries enabled, something like this should work if your daily notes are YYYY-MM-DD:

`$= '[['+moment().add(-1, 'days').format("YYYY-MM-DD")+'|Yesterday]]'`  
`$= '[['+moment().format("YYYY-MM-DD")+'|Today]]'`  
`$= '[['+moment().add(+1, 'days').format("YYYY-MM-DD")+'|Tomorrow]]'`

I use buttons and the templater command tp.file.move

today: <% await tp.file.move(“/Daily notes/” +“DD-MM-YYYY”)) %>

tomorrow: <% await tp.file.move(“/Daily notes/” +“DD-MM-YYYY”)) %>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.