Templater Script (Next Daily Note) not working for Month/ Year

What I’m trying to do

I am trying to automate my periodic monthly/ yearly notes by inserting the following Templater inline script

[[<% tp.date.now(“YYYY-MM”, -1, tp.file.title, “YYYY-MM”) %>]] - This Week - [[<% tp.date.now(“YYYY-MM”, +1, tp.file.title, “YYYY-MM”) %>]]

This script with the adjusted date syntax for day/ month works for my daily/ weekly periodic note templates. However, for monthly/ yearly, it will display the previous month, but where it should be the next month/ year it shows the current month/ year. Any idea as to why?

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