chzimm
(Christoph Zimmermann)
March 31, 2017, 8:22am
1
Hi,
I try to show the “Week in year” on my sitemap. But my itemconfig dosn’t work.
Regarding tohttp://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html I tried:
DateTime CurrentKW “Kalenderwoche: [%1$tw]” (calendar) {channel=“ntp:ntp:local:dateTime” }
But the sitemap shows an error.
How can I display the wanted informations?
– Christoph
rlkoshak
(Rich Koshak)
March 31, 2017, 4:55pm
2
The %1$tW syntax is implemented by StringFormatter. The supported parameters are here:
https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax
Week of the year is not supported.
You will have to create an unbound item (aka virtual item) and a rule to calculate the week in the year and update the unbound item.