Liebe Community,
Ich möchte eine Zeichenfolge erstellen, die die Woche eines Datums enthält.
ist dies mit Formatmustern möglich?
Natürlich könnte ich es als Zeichenfolge komponieren, aber mir gefällt die kompaktere Vorgehensweise mit Formatmustern besser.
Danke und viele Grüße,
Names Default To Here( 1 );
Print( Format( Today(), "Format Pattern", "<YYYY>_<MM>" ) );
// Format Patern does not recognize WW
Print( Format( Today(), "Format Pattern", "<YYYY>_<WW>" ) );
// this works
Print( Char( Year( Today() ) ) || "_" || Right( "0" || Char( Week Of Year( Today() ) ), 2 ) );</WW></YYYY></MM></YYYY>

Names Default To Here( 1 );
Print( Format( Today(), "Format Pattern", "<YYYY>_<MM>" ) );
// Format Patern does not recognize WW
Print( Format( Today(), "Format Pattern", "<YYYY>_<WW1>" ) );</WW1></YYYY></MM></YYYY>
"2024_08"
"2024_32"
Auch die ISO-Woche ( ww ) ist sehr hilfreich. Beachten Sie, dass sie nur in Kombination mit dem ISO-Jahr ( yyyy ) verwendet werden kann.
Leider gibt es im Graph Builder ein Problem mit diesem Zeitformat – das Jahr 2023 fehlt:
https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/mp/762929/highlight/true#M94343
