I’m trying to create an index for my daily notes using dataviewjs, grouped by month and then by week number. The issue I’m running into is that the dateformat() function seems to play well only with the ISO week number (WW) and ISO week year (kkkk) tokens, and doesn’t seem to recognize local week number (nn) and local week year (iiii) tokens. (I’m using this Luxon token reference.)
It’s not the end of the world if I can’t get the local week year format to work, but it just means I’ll have to live with weeks starting on a Monday rather than Sunday.
I see you’re using dataviewjs here, so then it’s an option to use moment.js for date manipulations. So I played a little bit around with using this test setup:
However, I’m not why the luxon format codes are not working for either of us. I’m contemplating that it might be related to the locale not being set properly which I’ve experienced in some random settings before.