What I’m trying to do
First time using Templater! So, probably just don’t understand how exactly it is working!!
---
startDate: <% tp.date.weekday("DD/MM/YYYY", 1) %>
endDate: <% tp.date.weekday("DD/MM/YYYY", 7) %>
---
<% tp.date.weekday("DD/MM/YYYY", 1) %>
<% tp.date.weekday("DD/MM/YYYY", 7) %>
<% await tp.file.rename("Week " + tp.date.now("ww") + " (" + tp.date.weekday("DD. MM.", 1) + " - " + tp.date.weekday("DD. MM. YYYY", 7) + ") _new")%>
Template “code” under the YAML/frontmatter is showing correctly - Monday and Sunday of the current week. But the date inside the YAML/frontmatter is showing wrong …
Things I have tried
Read about dates at tp.date - Templater and Moment.js | Docs, but nothing helped. As I mentioned - this is my first time using and playing with Templater, so I am still learning, but this confused me. What is the reason behind these dates in YAML/frontmatter?
Thanks! Marko