亲爱的社区:
我想创建一个包含日期周数的字符串,
是否可以使用格式模式来实现?
当然我可以将其组成一个字符串,但我喜欢使用格式模式以紧密的方式进行。
谢谢,并致以最诚挚的问候,
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”
ISO 周 ( ww ) 也非常有用。请记住,它只能与 ISO 年份 ( yyyy ) 结合使用。
不幸的是,Graph Builder 中的这种时间格式存在问题 - 缺少 2023 年:
https://community.jmp.com/t5/Discussions/Time-binning-how-to-change-the-Tick-labels/mp/762929/highlight/true#M94343
