Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 214 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Date formatting in RTF template: Excel Preview

Summary
Date formatting in RTF template: Excel Preview
Content
Hi All,
i have a date field auth_date as dd/MM/yyyy in rtf template, PDF preview gives expected output (i.e. auth_date as 23/Oct/2017) but excel preview gives same date in dd-MMM-yy format.
but i need dd/MMM/yyyy as date format in excel as well.
PDF output:
excel output:
any suggestion???
P.S: don't want to use Excel template as it does not support custom formatting and matrix table coding
Thanks and Regards,
Zeenat Shaikh
Answers
-
Hi
When Excel opens it see and recognizes the date data and then applies the default date format to the data. Its out of the RTF templates hands at that point.
AS the other reply has stated, the only way around it is to get the date format to a string using to_char so that Excel does not think its a date. You might still run into trouble as Excel appears to be pretty adept at recognizing data formats for you, even if they are wrong :0(
cheers
Tim
0 -
If Your source Type is SQL Query then convert auth_date into char , to_char(auth_date,'dd/mon/yyyy') ,
OR
use directly in the RTF template <?xdofx:to_date(SYSDATE,'dd-mon-yyyy')?>
1 -
Try this
to_char(auth_date,'dd/mon/yyyy')
0 -
Issue is solved.
have added two spaces at the end of date format and finally excel is taking it as string.
to_char(pu.createdate,'DD-MON-YYYY ')
Regards,
Zeenat
0 -
Hi Tim,
thanks for reply, actually i had already tried using to_char in sql but unfortunately excel still recognizing it as date and displaying it in dd-MMM-yy
Regards,
Zeenat
0