简体   繁体   中英

Current year in RTF Template

我正在使用条件<?if:contains(ENT_LUPD,'2022')?>来查找日期是否在 2022 年,如何调整它以获取当前年份而不是 2022 年,以便明年标签签入2023 年?

  1. You can use get_year function on sysdate to extract year, please check below link : https://docs.oracle.com/cd/E28280_01/bi.1111/e22254/extend_func.htm#BIPRD3160
  2. If the source is database, you can write query to fetch current year from dual and use that attribute here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM