从Date类型值转换为字符串时,日期格式指定年份的注意事项
[正文]
关于从Date类型值转换为字符串时的格式,如果使用大写字母“Y”指定年份,则不是指定为西历年
而是指定为“日历周的基准年”。
※采用与Java的SimpleDateFormat相同的格式。
因此,指定年份时请使用小写字母“y”,而不要使用大写字母“Y”。
※示例 指定年份使用“YYYY”时
在日历周的基准年中,2022年的第1周为2021/12/26~2022/01/01,2021年12月26日~31日也将获取2022年。
如想使用西历年,请使用小写字母“y”指定为“yyyy”。
作为参考,有关格式请参照以下内容。
intra-mart Accel Platform IM-LogicDesigner规格
5.3. 映射函数 一览表
5.3.1.4. 日期操作
5.3.1.4.2. 格式
https://document.intra-mart.jp/library/iap/public/im_logic/im_logic_specification/texts/appendix/mapping_function/date/im_date_formatdate.html
-- 适用对象 --------------------------------------------------------------------
iAP/Accel Platform/所有更新
--------------------------------------------------------------------------------
FAQID:1144
从Date类型值转换为字符串时,日期格式指定年份的注意事项