previous date from sysdate in XML publisher
Hello,
how to get previous date from sysdate in XML publisher?
I want something like <?sysdate()-1?>
Hi,
You could either try this <?xdoxslt:sysdate()-1?> or calculate the previous date in the dataset and use it in the report.
Source Database is Oracle 11g.
In report please
Are you wanting to do in Report Template or in Query?
What is your source database?
<?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.
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
Thanks