How one can returns the week number in Tiddlywiki for a tiddler created data?
I mean the week number a tiddler is created.
There are some docs tiddlers about date formats.
Search for 0WW and WW
Be aware, that for week numbers you also have to use wYYYY
otherwise you may be a year off
So, I can use
<$view field=created format=date template="0WW"/>
Then where I need to use wYYYY
? do you mean the date shall be saved like that!
Have closer look at Wikipedia Week numbering isn’t consistent. It depends on where you are.
So it can happen, that the date is 1st Jan. YYYY but week is 53 in YYYY-1 … So if you want to display the week number and the year you need to use the right formatting of the year. Otherwise the year will be wrong by 1
And not every country uses ISO numbering!
1 Like
Thanks Mario!
I got the point and will read Wikipedia, the reference you pointed!