Templater Calendar Question #58
-
|
Hey Bryan, I converted my Obsidian daily note template to templater and ran into a little problem that I couldn't figure out so I reverted back to Calendar functions. Sometimes I forget to write my daily note. When this happens I will open the calendar and click on the day that I missed and it creates the daily note for that day. When I tried to do this with templater, I couldn't figure out how to get the date that I clicked in the calendar. It worked fine I was creating the note for today but not for any other day where it needed to create the file. Do you see a way to do that in templater? Here is what I have now that does what I want using the Calendar functions: [[{{date-1d:YYYY-MM-DD}}]] <- Today -> [[{{date+1d:YYYY-MM-DD}}]] Daily Note for {{date:dddd, MMMM D, YYYY}} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Here you go :) [[<%tp.date.now("YYYY-MM-DD", -1)%>]] <- Today -> [[<%tp.date.now("YYYY-MM-DD", 1)%>]]
<%tp.date.now("dddd, MMMM D, YYYY")%> |
Beta Was this translation helpful? Give feedback.
Here you go :)