Hi,
I’m trying to generate week numbers of the form DD (i.e., 01 instead of 1). I am parsing the date as part of my file name, i.e., 2024-01-01, and I use the following script
moment((${title}
), “YYYYMMDD”).week()
to compute the weekly number. But it returns 1, and for consistency reasons with periodic notes, I need to get 01. I tried to use format(‘DD’), but I am doing something wrong…
Many thanks!