Daily and Weekly Notes - any day from calendar #568
Replies: 6 comments 10 replies
-
I got this from digital.graden template. Hope it is useful.
Result |
Beta Was this translation helpful? Give feedback.
-
I was about to post it 😂, I just realize of that today. |
Beta Was this translation helpful? Give feedback.
-
That's odd. Templater says that's not a valid function. Can someone provide guidance? |
Beta Was this translation helpful? Give feedback.
-
I do not understand why you say you need moment.js. I did it this way. Navigation template
For me, the name of the note is the curent date. You could remove everything after the -1 and +1. Result
|
Beta Was this translation helpful? Give feedback.
-
The periodic notes plugin also fixes this using {{date:}} and you can plug that into tp.now |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get this working for a monthly template, but encountering invalid dates. Here's how it works (and doesn't work) This is an array to pick the month you're creating:
This renames the file using the array above and tp.system.suggester
All that works. Then I try to do something similar with the frontmatter. But the MMM-YYYY tag kicks back an invalid date:
And just trying to output a reformatted date based on the year month or 2023-10 format, I'm getting invalid dates.
I'm sure I'm missing something small... |
Beta Was this translation helpful? Give feedback.
-
Problem: Using tp.date.now wasn't compatible with making future (or past) daily or weekly notes.
Solution: moment.js
Daily
Notes
I use format DD-MM-YYYY, which has to be specified in moment as above.
You must set daily notes to be created using the same format as specified in the template.
Weekly
Notes
I name my weekly notes "Week 01 2020" for example, which requires an additional step of wrangling. I set the calendar plugin to create notes in the format "ww YYYY". The included rename title script above sits at the bottom of my weekly template, and adds the "Week" string to the file title.
Beta Was this translation helpful? Give feedback.
All reactions