Categories
- All Categories
- 10 Oracle Analytics Sharing Center
- 13 Oracle Analytics Lounge
- 209 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.6K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Bi Publisher - add 7 days to a date element in rtf template

Content
I wish to add 7 days to a date element in rtf template. I read several topics but I cannot get it to work somehow.
I have the following code in my rtf template:
<?if:count(PROMISED_DATE)='0'?><?format-date:xdoxslt:ora_format_date_offset(CREATION_DATE,7,’+’);'DD-MM-YYYY'?><?end if?>
Unfortunately it is not increasing the creation date + 7 days in my template. What am I doing wrong?
Thanks. Ilona
Version
Bi Publisher 12.2.1.4.0
Code Snippet
<?if:count(PROMISED_DATE)='0'?><?format-date:xdoxslt:ora_format_date_offset(CREATION_DATE,7,’+’);'DD-MM-YYYY'?><?end if?>
Answers
-
try this
<?format-date:(xdoxslt:ora_format_date_offset(xdoxslt:ora_format_date(‘2020-11-15’,'YYYY-MM-DD'),14,'+'));'DD MONTH YYYY'?>
above code worked for me and output is 29th November 2020
0 -
Hi,
You can try this as well:<br /> <?format-date:(xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),7,'+'));'DD-MM-YYYY'?>
-Sandeep
0 -
Hi Datlaavinash,
This works for me too, but instead of '2020-11-15' I want to add the days to CREATION_DATE. When I change '2020-11-15' to CREATION_DATE or 'CREATION_DATE' it does not work anymore unfortunately. Do you have another option?
Thanks.
Ilona
0 -
Hi Sandeep,,
This works for me too, but instead of sysdate I want to add the days to CREATION_DATE. When I change sysdate to CREATION_DATE it does not work anymore unfortunately. How do I go about adding 7 days to tag CREATION_DATE?
Thanks.
Ilona
0