Date formats BI Publisher
HelloI'm trying to convert a date format DD-MM-YYYY 20100910, is possible to change this format in the model. I tried to change the model of data using query:
TO_DATE (date_field, ' YYYY-MM-DD ""), but this means no data returned by the query.
Can anyone help with date formats?
Thank you
Given that your date is 20100910 format, you can use
TO_CHAR (to_date(date,'YYYYMMDD'), 'DD-mon-YYYY') at the db level
or
to_date(date,'YYYYMMDD') in your query
and use in RTF
Tags: Business Intelligence
Similar Questions
-
Hi, I'm new to BI Publisher. How to change the format of date in BI Publisher. I have already 1 format of database, but in the reports that we want to use a different format, how can we do?
I have already 1 format of database, but in the reports that we want to use a different format.
data relate to the model through representation of xml data (I omitted the case on the use of csv like data source etc)
If you have two place for interaction date
(1) the database in xml format
(2) the model xml
so you can form date of case 1 and only to tag for it in the model
If you want to change the format of the xml representation data you can change in case 2 ( Mathieu Sundarasamy-Oracle (as I prefer) or very little 934101 of path) or in case 1 (change of format mask in the generation of xml)
so, you have two ways to work with date
and if you use the first case to dictate using the format mask appropriate for the needs of report production and no more
but in the second case the new date format based on the representation of the date to xml format
If you in case 1 and then change the format mask for your needs
If you in case 2 then post sample xml or try yourself in order to adapt the example Mathon Sundarasamy-Oracle
-
I need to get the month of the date field. Let's say that the domain name is date_from (May 24, 2014) in the table and it is of type Date. Firstly I formatted for to_char('24-MAY-2014','MON'), it gives 'MAY', then I need to convert to the date format. Please advice how to get the format/month.
Please mark answered the question.
-
I'm working on a data model BI Publisher and I try to convert the Period_Name in GL_JE_Lines table to a date format and then return of the year.
The sql below works in 11i, but I can't make it work in Fusion.
to_char (to_date (l. )) period_name , ' MON-RR ' ),'YYYY')
Any ideas?Hi Jennifer,.
To_char (sysdate, 'DDMONYYYY') in BI Publisher does not return a correct results due NLS_DATE_FORMAT/DATE_LANGUAGE settings.
According to the standards of the I18N, NLS_DATE_LANGUAGE in the database is still hardcoded to NUMERIC_DATE_LANGUAGE. NUMERIC_DATE_LANGUAGE 'MY' in a date format mask is an integer, so you see the correct value.
You're not supposed to publish direct SQL with fixΘe format masks (unless it's some sort of canonical format used in internal processing, including the end-user will not be), you should return language digital date to the mid range and then make the formatting of y.
Workaround
Try adjusting the NLS_LANGUAGE in SQL data model to override formatting from of the
Data base and values of the Session, for ex: select to_char (sysdate, 'MON-DD-YYYY', 'NLS_DATE_LANGUAGE = AMERICAN') of double;
I got this Oracle support after lifting a SR.
Thank you
Rahul.
-
Date format in the supporting - attachment Documents
Hello
Page of support documents - in 6.0 date format for entry into force and date unavailability has a descriptive format (Monday, February 17, 2014), but in the point 6.1 resembles the date format of the field has been in number as format (17/02/2014).
Is there a way we can customize / format description to a numeric date format.
Kind regards
Kumar
6.1 has brought a new editing tool and improved for the dates so that you can type the dates directly in the field or use the calendar control. With this control, we are unable to show the descriptive long format in edit mode. In playback mode the descriptive date must always shown as "Monday, February 17, 2014" Unfortunately it seems that the behavior of the old system that you cannot open the popup details of attachment in read mode so that you will never see these inactive/effective dates in a full descriptive format.
Good news if
1. we now offer a review of supporting documents report. This report will let you see all the supporting documents on a single specification or through a hierarchy of specification. You should be able to set the date format to display in the long descriptive view. In the BI publisher layout tool, click the column and change the formatting in the form under "Formatting data" in the toolbar. Discover our pack of extensibility for more information on this report and others.
2. We hope to offer in our next major release of universal date as February 14, 2014 formats and you will be able to see the document in support and the details of the attachment in read mode.
-
sqlldr: using RTRIM date format conversion
Hi all
I need assistance with date formats using sqlldr to load.
I did some research on the internet, but not really good to find examples that help in my case clear.
I am trying to load data from another source into our Oracle database, however, the field 'date' includes additional characters that I am dealing with.
For reference, I'm under Oracle 11.2 on Linux 5.7.
First, the entry of the actual date is:
I tried to get in a few ways but could not load until I physically removed the "AM EDT' the input string.April 18, 2013 8:50:44 AM EDT
My first question is if there is a way to RTRIM and get rid of these extra characters.
Or maybe I just need a way to convert the "AM EDT" our standard date format.
My controlfile has the following:
This will load the data, but only if I'm hard on the 'AM EDT' of the actual data entry which is not feasible.LASTCHANGEDAT date "Month dd, YYYY HH MI SS",
Also, how I would manage that comes as the date: April 18, 2013 21:50:44 CEST
Also, I tried the following, but it gives me a different error:
Published by: 974632 on April 22, 2013 12:41LASTCHANGEDAT "to_date(:LASTCHANGEDAT,'DD-MON-YYYY HH24:MI:SS')", gives me error: Record 1: Rejected - Error on table NTWKREP.INTERFACE, column LASTCHANGEDAT. ORA-01858: a non-numeric character was found where a numeric was expected
You only need a control file and it's okay if you are using AM or PM in the control file. Using AM or PM just said to expect one or the other in this position and will take care of both of them. Please see the demo below that shows that either am or pm in the control file works with am and pm in the data.
SCOTT@orcl_11gR2> host type test.ctl load data infile * into table test_tab fields terminated by '|' (lastchangedat1 timestamp with time zone "Mon dd, yyyy hh:mi:ss am tzd", lastchangedat2 timestamp with time zone "Mon dd, yyyy hh:mi:ss pm tzd") begindata: April 18, 2013 8:50:44 AM EDT|April 19, 2013 9:51:45 PM EDT April 20, 2013 10:52:46 PM EDT|April 21, 2013 11:53:47 AM EDT SCOTT@orcl_11gR2> create table test_tab 2 (lastchangedat1 date, 3 lastchangedat2 date) 4 / Table created. SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log SQL*Loader: Release 11.2.0.1.0 - Production on Tue Apr 23 10:09:59 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Commit point reached - logical record count 2 SCOTT@orcl_11gR2> select * from test_tab 2 / LASTCHANGEDAT1 LASTCHANGEDAT2 ----------------------- ----------------------- 18-apr-2013 08:50:44 am 19-apr-2013 09:51:45 pm 20-apr-2013 10:52:46 pm 21-apr-2013 11:53:47 am 2 rows selected.
-
HI team,
I have a problem, how we can convert number in date format?
This is the result of the query.
SQL > col START_TIME for 999999999999999999999999
SQL > select start_time in qrtz_triggers;
START_TIME
-------------------------
1364243906000
1364589406000
So, I have to change the date format niumber rto.
My date format as for example: "" Mar 25,2013 20:36:45 ""
Please suggest me...
Thank you
Chavigny
Published by: 939938 on March 14, 2013 06:39This is the number of milliseconds since January 1, 1970.
SQL> SELECT to_char(to_date('01/01/1970','mm/dd/yyyy')+1364243906000/24/60/60/1000 2 ,'Mon dd, yyyy hh:mi:ss PM') FROM dual; TO_CHAR(TO_DATE('01/01/1970',' ------------------------------ Mar 25, 2013 08:38:26 PM
So in your query instead of start_time use
TO_CHAR (to_date (' 01/01/1970 ',' mm/DD/yyyy') + start_time/24/60/60/1000,' Mon DD, YYYY HH: mi: ss PM "")Published by: kendenny on March 14, 2013 08:31
Had used mm instead of e for the minutes. -
Hi gurus,
The RPD, I have a condition where
If (received_date-current_date) < X then...
the date of receipt in the database is digital. Ex: 20040810
How can I change the date format to match the default value for the current date in the expression builder.
Thank you
AvinashLooks like you use the calculations based on the fact table or could be physical columns.
I suggest you use the logical columns so that you can use the column date (by received_date) your day sun.
or else
map the day Sunday to the fact table and to use physical expression for the same, the same as your other post with status = completed as I said in my last email.You must use the timestampdiff function.
If brand aid
Published by: Srini VIEREN on February 20, 2013 14:47
-
varchar2 to the date format conversion
I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY, but I want to change it to DD/MM/YYYY. My query is below:
Select to_date('fccpdate','MM/DD/YYYY')
of cc_class_scmast_v
When I try to_date I get this:
Error from the 1 in the command line:
Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
Error report:
SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
01858 00000 - "a non-digit character found here where was waiting for a digital".
* Cause: Input data to convert using a date format model has been
incorrect answer. The input data did not contain a number where is a number
required by the format model.
* Action: Fix the input data or the date format model to ensure that the
elements correspond to the number and the type. And then try the operation again.
When I try to_char I get this:
Error from the 1 in the command line:
Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
Error report:
SQL error: ORA-01722: invalid number
01722 00000 - "invalid number."
* Cause:
* Action:
I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.Hello
housetiger77 wrote:
I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY,If the column is a DATE, then it has the same format that all DATEs, which is nothing like 'DD-MON-YYYY '. Formats like which apply only to chains.
Conversely, if it is in the format "DD-MON-YYY", then it is a string, not a DATE.but I want to change to DD/MM/YYYY. My query is below:
Select to_date('fccpdate','MM/DD/YYYY')
of cc_class_scmast_vTo_date (x, "MM/DD/YYYY") tries to convert the string x in a DATE. Let's say it starts by taking the first 2 characters of x, for the month. The first 2 characters of 'fccpdate' are "fc", which is not a valid number (at least not in base 10), not to mention a number from 1 to 12, TO_DATE so will raise an error.
When I try to_date I get this:
Error from the 1 in the command line:
Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
Error report:
SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
01858 00000 - "a non-digit character found here where was waiting for a digital".
* Cause: Input data to convert using a date format model has been
incorrect answer. The input data did not contain a number where is a number
required by the format model.
* Action: Fix the input data or the date format model to ensure that the
elements correspond to the number and the type. And then try the operation again.When I try to_char I get this:
Error from the 1 in the command line:
Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
Error report:
SQL error: ORA-01722: invalid number
01722 00000 - "invalid number."
* Cause:
* Action:I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.
It's a good first step. Literals are enclosed in single quotes are not identifiers (including the column names). "fccpdate" is the literal string of 8 characters containing 'f', ' c; Another 'c', 'p' 'd', 'a', 't' and 'e'. " fccpdate (without the single quotes) can be the name of a column.
If fccpdate is a string, as July 18, 2012', then you can convert it to a DATE using TO_DATE.
TO_DATE (fccpdate, 'DD-MON-YYYY')
If you want to display a DATE in a particular format, use
TO_CHAR ( d , f )
where d is a DATE, and f is the format string. In this case, d is perhaps the TO_DATE expression above
TO_CHAR ( TO_DATE (fccpdate, 'DD-MON-YYYY') , 'MM/DD/YYYY' )
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.
See the FAQ forum {message identifier: = 9360002} -
Date format custom that allows Obiee 11g
Hello
I'm new here,
What are the date format can be used in OBIEE 11 g?
We can custom like this: DD-MM-YYYY? is there any case like DD-MM-YYYY?
Help, please
Joe
Published by: JoeSSI on March 1, 2012 20:32Hello
Refer,http://docs.Oracle.com/CD/E23943_01/bi.1111/e10544/format.htm#i1030865
Thank you
Deva
-
Hi gurus,
I have a column with data in the format MM/DD/YYYY, but I want to display in the format MM/DD/YYYY HH: mi AM as
05/12/2011 to 05/12/2011 15:20
How can I achieve this in OBIEE?, please review me...
Published by: user on November 21, 2011 12:10 AMHello
You can try below in the custom date format:
MM/dd/yyyy hh: mm tt
Thank you
-
Get the Date format that the user sets in "Preferences".
Hello
Is it possible that I can get the date format (for example: "DD-MMM-YYYY', 'DD-MM-YYYY' etc.) where the user desires under 'Préférences' in a page of the OPS?
Concerning
Hawker
Published by: HawkerHunter on Aug 6, 2011 11:02ICX_DATE_FORMAT_MASK - is the value of profile that contains the value that is selected in the preferences page.
You can try pageContext.getProfile ("ICX_DATE_FORMAT_MASK");
in your code.Kind regards
Krishnan guru. -
Variable Date format of presentation
Hi all try to format a variable presentation from a Narrative perspective, is it possible that this can be done by using javascript or html that I can stick in narrative mode.
I want something like ' the date used is @{indate} to the end of the month.
Date format must also be JJ.mm.aaaa... his currenty displayed as yyyy/mm/dd... I don't want to add the columns in my report and hide as there seems to be a performance lag when I do this.
Any ideas... Java gurus out there.
I tried @{indate} [dd.mm.yyyy..] but it does not work.
See you soon
Jenny
Published by: user5470064 on August 18, 2011 09:58
Published by: user5470064 on August 18, 2011 09:59Here you go...
I tried in my machine and its working very well...
In the answers--> in the criteria TAB, in the column fx use under formula...
«case when 1 = 1 then EVALUATE ('TO_CHAR(%1,%2)' as a varchar (20), date ' @{pv_date} {1998-07-05} ',' dd.mm.yyyy "") else ' ORE time Dim ".» End of the name of the month.
pv_date is the variable of presentation and
For "ore time Sun. "" MNTH name ' use any column of varchar data type ...
Hope that's helpful...
Thank you
Ashish Gupta -
Change the DATE FORMAT in a data store
I created a few projects with the help of a Teradata technology using tables that allow to CREATE_TARG_TABLE the Yes option.
Model / data store, there are DATE fields, but I can't change the DATE FORMAT, change the field.
When the process starts and creates the table in the database, create using FORMAT of DATE "AA-MM-DD" and I would like to create as "YYYY-MM-DD".
Y at - it a step that I am doing wrong, to be able to change the DATE FORMAT?
From already thank,Hello
--> Physical Architecture topology--> Teradata--> data types, create a new data type (or modify the existing DATE data type), then set it to the desired format of the syntax 'Create Table' and 'Format data type accessible writable.
That is to say DATE FORMAT "YYYY-MM-DD".
Then all your tables created will use this format. (I just tested it, it works).
Let us know if you have any problems.
See you soon
BOS
Published by: Bos July 12, 2011 15:50
-
insertion error - date format picture ends before the conversion while
My system: I use of Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product with SQL * more: Release 10.2.0.1.0 and the first thing I've done in this project is a user account configuration especially for her through Application Express 2.1.0.00.39 with all permissions and then connected with SQL * more and seized command and run scripts on it since.
I got the following error was in a previous project, but I don't have the result of it so I don't know how much he touched me. We can not always distribute perfect projects so I could live with that. It is that this new project is the first that start from a previous one have of course, I still have the error so I think they'll be less forgiving of mistakes that I had more time to work on it. However, after hours of research & debugging tests I still cannot do things.
I read on sites in development more than a couple that we should not rely simply on inputs of channel inserts on dates where there is incompatibilities with nls_date_format and based instead on TO_DATE. This seems logical and I have no problem of implementation, but there is a problem running it. :|
The following is an excerpt from my project bringing the error that I need to move.
Thank you so much for your help
DynV
H2.
code
ALTER SESSION SET nls_date_format = "DD/MM/YYYY";
DROP TABLE EMP;
CREATE TABLE EMP
(
NOEMP INTEGER NOT NULL PRIMARY KEY,
NAME VARCHAR (15) NOT NULL,
FIRST NAME VARCHAR (15) NOT NULL,
NOFONCTION INTEGER NOT NULL,
DATEEMBAUCHE DATE,
SALARY INTEGER NOT NULL,
NODEPT INTEGER NOT NULL-,
-FUNCTION REFERENCES FOREIGN KEY (NOFONCTION),
-FOREIGN KEY (NODEPT) REFERENCES DEPT
);
-NoEmp, name, NoFonction, DateEmbauche, NoDept, salary
INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/YYYY ""), 40, 20000);
INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/MM/YYYY '), 20, 3500);
H2.
result
Modified session.
Table created.
INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/A))
YY'), 40, 20000)
*
ERROR on line 1:
ORA-01830: date format picture ends before converting all of the input string
INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/M))
M/YYY'), 20, 3500)
*
ERROR on line 1:
ORA-01830: date format picture ends before converting all of the input string
H1.
solution
The Xgc of channel for the IRC server freenode user [#sql | irc://freenode/%23sql] had me I was using 3 characters for my picture/mask/filter /... instead of the 4 that taking data. then they became "JJ/M".
M/YYYY "."
How small error but with such devastating consequences.
Published by: user13420426 on December 6, 2010 01:39You're 1 shy O.
TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual; select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual * ERROR at line 1: ORA-01830: date format picture ends before converting entire input string TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYYY') from dual; TO_DATE('17/12/1997' -------------------- 17-DEC-1997 12 00:00 1 row selected. TUBBY_TUBBZ?
Notice how I YYYY where you YYY.
Maybe you are looking for
-
Resource VISA does not list options
I have a .VI which works very well on my computer windows 7. When I move the arduino on my computer windows 8, the VISA resource for the icon of init Arduino does not recognize the COM ports. This option is refresh. It shows on my devices like Arduin
-
What should I do with an error message? #80072F8F
I need to know what to do with a code 80072F8F I also always receive a warning from security code - is - it? It all started when the computer is passed not be plugged
-
WINBOM. JOURNAL and FBALOG. TXT files are corrupted and unreadable
original title: the directory or the file minint\System32\WINBOM. JOURNAL is damaged and unreadable, the file or the directory minint\FBA\FBALOG. TXT is damaged and unreadable. Help! I need help because my computer will randomly stop and in a light o
-
Dell optiplex 330 processors?
I'll try to find a guide about something that will tell me the compatible processors for desktop optiplex 330 Tower?
-
Whenever I boot, I get a message of sqare with 'script error' and load the DLL error.It started happening after I converted from Verizon DSL to Verizon FIOS. How can I get rid of this popping up all the time. Is there something wrong in the system?