Dear Community,
I want to make a string containing the week of a date,
is it possible to do so with Format Patterns?
Of course I could compose as a string, but I like the tight way doing it with Format Patterns.
Thanks and best regards,
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 ) );
Georg