Displaying every week in monthly notes using templates

Hey all. I am trying to template my monthly note and I was hoping I can automatically generate something like this:

Sep 2021

Week 1 (9.1-9.5)

Week 2 (9.6-9.12)

Week 3 (9.13-9.19)

Week 4 (9.20-9.26)

Week 5 (9.27-9.30)

Is this achievable?
I know it would be easier to use the weekly notes using {{monday:YYMMDD}} ~ {{friday:YYMMDD}}. But I already use the weekly notes for a different purpose.

What do you think?

1 Like

I think you’ll nee a plugin like Templater for this:

- [[<%tp.date.now("YYYY-MM-[week]-ww")%>]]
- [[<%tp.date.now("YYYY-MM-[week]-ww", 7)%>]]
- [[<%tp.date.now("YYYY-MM-[week]-ww", 14)%>]]
- [[<%tp.date.now("YYYY-MM-[week]-ww", 21)%>]]
- [[<%tp.date.now("YYYY-MM-[week]-ww", 28)%>]]

(you’ll have to adjust the YYYY-etc.-part)


This is very helpful! Thank you!

I do wonder tho if it is possible to also display the days in each week. I was hoping to block quote one block in my daily notes to the monthly note and without some sort of index it’s gonna look confusing.

Apparently this won’t do as the first week of a month usually does not contain 7 days.


![[<%tp.date.now("YYYY年MM月DD日", 1)%>#^1]] 
![[<%tp.date.now("YYYY年MM月DD日", 2)%>#^1]] 
![[<%tp.date.now("YYYY年MM月DD日", 3)%>#^1]] 
![[<%tp.date.now("YYYY年MM月DD日", 4)%>#^1]] 
![[<%tp.date.now("YYYY年MM月DD日", 5)%>#^1]] 
![[<%tp.date.now("YYYY年MM月DD日", 6)%>#^1]] 

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