What I am trying to do
I configured the Daily Notes plugin with “Date Format” set so that my daily notes are automatically placed in folders for year, month, and week of year. When it comes to how Sunday is treated I get different results depending on the moment.js coding used
1. Using “w” or “ww” for “week of year”
With this, Obsidian calculates that 2022-03-06 (a Sunday) is in the 11th week of the year.
2. Using “W” or “WW” for “week of year” (ISO version)
With this, Obsidian calculates that 2022-03-06 is in the 9th week of the year.
3. Summary
Neither calculation (and the resulting folder creation) is correct for Sunday 22022-03-06 or, as far as I can tell, for any other Sunday. Two issues
- AFAIK there is no setting for the core Daily Note plugin to tell Obsidian what the first day of the week is – e.g., “First day of week: Sunday”.
- Neither of the two formats shown above (“W or WW”, and “w or ww”) are interpreted correctly – i.e., the “correct” week of year for 2022-03-06 is “10” not "09 and not “11”.
Things I have tried
What I’ve tried is detailed above. What I do, every Sunday, is manually correct what seems to be to be an “error”.