Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K 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
previous date from sysdate in XML publisher

Summary
previous date from sysdate in XML publisher
Content
Hello,
how to get previous date from sysdate in XML publisher?
I want something like <?sysdate()-1?>
Answers
-
Hi,
You could either try this <?xdoxslt:sysdate()-1?> or calculate the previous date in the dataset and use it in the report.
0 -
Source Database is Oracle 11g.
0 -
In report please
0 -
Are you wanting to do in Report Template or in Query?
What is your source database?
0 -
<?xdoxslt:sysdate()-1?> output is not in correct format.
for example: if i generate output today(2017/25/04), its printing as "202504".
format is not changing even if i change property of this element.
yes, i included in dataset and used in template.
but i want to know method of using sysdate function in formula.
0 -
This is preferable to calculate SYSDATE -1 in database and create XML tag for that. Because BI Publisher treat date as number so suppose you have 01-APR-2017 and you will do -1 for this it will print 00-APR-2017, this is not valid date. So better do it on database and use XML
0 -
Thanks
0