I mean for the weekly note to have the date of the first day of the week (Sunday). For example, the week of Oct 17th to 23rd would be 2021-10-17. With templater, I used the following:
<% tp.date.weekday(“YYYY-MM-DD”, 0, tp.file.title, “YYYY-MM-DD”) %>
So if I were to create the weekly note on any day from Oct 17th to 23rd, the title of the note would be 2021-10-17. I hope this makes sense!