I make my next monthly note the month before, so I have <% await tp.file.rename(tp.date.now(“YYYY-MMMM”,“P+1M”)) %> to make the file the correct date.
Ideally I want to have a section that shows the date each week of that month begins, eg:
Week 27 (Monday 3 July)
Week 28 (Monday 10 July) etc.
I have tried:
<% await tp.date.weekday("w", 0, tp.file.title, "YYYY-MMMM") %>
But this returns the Monday that I create the file on, rather than using the title as the reference (maybe I am doing something wrong there and it is not awaiting the file name change)
<% moment(tp.file.title, "YYYY-MMMM").add(1, "months").format("ww") %> <% moment(tp.file.title, "YYYY-MMMM").add(1, "months").format("ww DD MMMM") %>
(I have to add ‘1 months’ as otherwise it uses this month) But this does not start from the Monday, so if it is a saturday then will show the date as a saturday throughout the month.
Anyone know how I can output the dates of the first Monday of the following month?