I am trying to find a way to quickly insert the date of the first day of the current week.
So I am looking for a templater script that outputs the date of the first day (monday) of the current week.
Things I have tried
The code that I can find is only a specific date on different formats.
<%*
const today = moment(); // Get the current date using Moment.js
const firstDayOfWeek = today.startOf('isoWeek'); // Start of the current week (Monday)
tR += firstDayOfWeek.format('dddd, MMMM Do YYYY'); // Output the date in the desired format
%>