Problem in date format
There is one date characteristic in my query , which has same format with infoobject 0DATE(yyyymmdd)...When I am executing the report that date field is displayed as mm/dd/yyyy , but in the dataprovider the same date field has been displayed as dd/mm/yyyy...I want this format(dd/mm/yyyy) of that characteristic to be displayed in the query..
hi
follow this procedure to change the date format
In BW goto menu option System/User Profile/Own Data and change date format there.
Regards,
MAnoseelan
Similar Messages
-
Problem with date format when ask prompt web-intelligence
Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian.
Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format.
Looks like korean format of date 'jj.nn.aaa H:mm:ss'. I see system settings of date in Win .. everything right
What i have to do?
Where i can change format date for bo?GK, try this...
decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn -
Got one more problem Merilyn and Radhakrishnan...
Regarding the soln y provided me earler with the thread "Problem with date format"...
What is happening is....I am able to change the 2400 to 0000 but when it is changed from 2400 on jan 1st to 0000 the hour is changing but not the date....the date still remains as jan 1st instead of jan 2nd....
Eg: Jan 1st 2400 -- changed to -- jan1st 0000
instead of jan 2nd 0000
Could you please help me in this issue...
Thanks,
GKGK, try this...
decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn -
Problem with date format dd/mm/yyyy. But I need to convert yyyy-mm-dd.
Dear friends,
I have the problem with date format. I receiving the date with the format dd/mm/yyyy. But I can upload to MySQL only in the format of yyyy-mm-dd.
how should I handle this situation, for this I've created these code lines.But I have some problem with these line. please help me to solve this problem.
String pattern = "yyyy-mm-dd";
SimpleDateFormat format = new SimpleDateFormat(pattern);
try {
Date date = format.parse("2006-02-12");
System.out.println(date);
} catch (ParseException e) {
e.printStackTrace();
System.out.println(format.format(new Date()));
this out put gives me Tue Apr 03 00:00:00 IST 2007
But I need the date format in yyyy-mm-dd.
regards,
maza
thanks in advance.Thanks Dear BalusC,
I tried with this,
rs.getString("DATA_SCAD1")// where the source from .xls files
String pattern = "yyyy-MM-dd";
SimpleDateFormat format = new SimpleDateFormat(pattern);
try {
Date date = format.parse("DATA_SCAD1");
System.out.println(date);
} catch (ParseException e) {
e.printStackTrace();
System.out.println(format.format(new Date()));
this out put gives me Tue Apr 03 00:00:00 IST 2007
But I want to display the date format in yyyy-mm-dd.
regards,
maza -
Problem About Date Format in Dashboard
Hi All:
I still have problem about date format in dashboard and dashboard prompt. When I use cast(dealdate as date) in dashboard prompt(coloumn formula of deal_date) and filter view(In edit view of filter coloumn formula) Then It converts the date format from mm/dd/yyyy to yyyy-mm-dd But I want format in dd-mm-yyyy.
ANd also one problem more that is when I use cast function in filter coloumn formula then how I give alias to it. Because it shows same like that cast(deal_date as date) on dashboard filter view.
Pluzz help me to solve this problem
HaroonChanging the ini files should change the date format. Have you amended the correct instances of the date format? In dbFeatures there is one for every ODBC connection.
For example in my DBFeatures.INI
[ DATA_SOURCE_FEATURE = ODBC_300 ]
DATE_FORMAT = 'dd-mm-yyyy' ;
TIME_FORMAT = 'hh:mi:ss' ;
DATE_TIME_FORMAT = 'dd-mm-yyyy hh:mi:ss' ;
IDENTIFIER_QUOTE_CHAR = '"';Also a file on the presentation side in OracleBI \web\Config called localedefinitions.xml.
Inside that there appears to be defaults for localisations - maybe it is possible to amend your locale in the Administration settings of the dashboard.
However, I haven't tried this sorry. -
Problem in date format in purchase order printout
Hello Experts,
We have problem in date format of some Purchase Order in printout, the format of PO document date and delivery date are customized for example PO document date Mar 02, 2011 and Delivery date Mar 15, 2011.
In printout it shows:
PO doc. date: 20, 3.02
Delivery date: 20, 3.15
How come this format? some PO's are ok in their date format.
hoping your best solution to fixed this issue.
ThanksHi,
1st get help from ABAPer & check how PO doc. date & Delivery date of PO set in "PDF/Smart Form" which you used for PO print can be checked in NACE t.code with EF application for you PO output type.
Also check in t.code: SU3 , in the default tab how Date Format is selected for user.
Regards,
Biju K -
Problem with date format mask 'D'
I am experiencing an extremely thorny problem with the date format mask ‘D’. I am trying to use it to check whether today is a Monday. The variable v_temp_day is set to sysdate. For the last 4 weeks the code has behaved erratically – giving a different result at 02:00 than at 10:30 even though it is only taking account of the date. In desperation I inserted a debug statement formatting the date in a variety of ways – with interesting results. Oracle is somehow managing to tell us that today is simultaneously Monday and Tuesday depending on which format mask you choose. Anyone got any thoughts or suggestions?
PROC_ID TO_CHAR(STAMP_TIM
EVENT_SQLERRM
RRHKP010 17092007 02:00:00
TO_NUMBER( TO_CHAR( v_temp_day, D ) ) = 2. TO_CHAR( v_temp_day, D ) = 2. TO_CHAR( v_temp_day, DY ) = MON. TO_CHAR( v_temp_day, DAY )
= MONDAY . TO_CHAR( v_temp_day, Day DD-MON-YYYY HH24MISS ) = Monday 17-SEP-2007 020000. TO_CHAR( v_temp_day, D ) = 2.
SQL> select to_char( sysdate, 'D' ) from dual ;
T
1My book says the trunc(d,'iw') will return "same day of the week as Jan 1st of that year"It's bad book.
Please read about [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96540/functions176a.htm#80159]TRUNC & 'IW' Format Model and [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96529/ch3.htm#50331]Database Globalization Support Guide: First Calendar Week of the Year in the manual. -
Problem with date format from Oracle DB
Hi,
I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
I have changing the field settings in DataSource to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
Thanks in advance.
Regards
VaradaThanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
The issue again in detail
I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
The problem is, I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
Regards
Varada -
SQL Loader Problem with Date Format
Dear all,
I am dealing with a problem in loading data with SQL Loader. The problem is in the date format.
More specifically, I created the following Control File:
file.ctl
LOAD DATA
INFILE 'D:\gbal\chatium.log'
APPEND INTO TABLE CHAT_SL
FIELDS TERMINATED BY WHITESPACE
TRAILING NULLCOLS
(SL1 DATE "Mon DD, YYYY HH:MI:SS FF3AM",
SL2 char,
SL3 DATE "Mon DD, YYYY HH:MI:SS FF3AM",
SL4 char,
SL5 char,
SL6 char,
SL7 char,
SL8 char,
SL9 char,
SL10 char,
SL11 char,
SL12 char,
SL13 char,
SL14 char,
SL15 char)
The data we want to load are in the following file:
Apr 29, 2007 12:05:49 AM 1060615 Apr 29, 2007 12:05:35 AM 306978537730 24026384 chatium.user.userinfo WAP 0
Apr 29, 2007 12:12:51 AM 1061251 Apr 29, 2007 12:12:27 AM 306978537730 24026384 chatium.channel.list WAP 0
Apr 29, 2007 12:12:51 AM 1061264 Apr 29, 2007 12:12:32 AM 306978537730 24026384 chatium.channel.listdetail WAP 0
Apr 29, 2007 12:13:51 AM 1061321 Apr 29, 2007 12:13:31 AM 306978537730 24026384 chatium.user.search WAP 0
Apr 29, 2007 12:13:51 AM 1061330 Apr 29, 2007 12:13:37 AM 306978537730 24026384 chatium.user.userinfo WAP 0
The error log file is the following:
SQL*Loader: Release 9.2.0.1.0 - Production on Mon Apr 30 11:29:16 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Control File: file.ctl
Data File: D:\gbal\chatium.log
Bad File: chatium.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table CHAT_SL, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
SL1 FIRST * WHT DATE MonDD,YYYYHH:MI:SS
SL2 NEXT * WHT CHARACTER
SL3 NEXT * WHT CHARACTER
SL4 NEXT * WHT CHARACTER
SL5 NEXT * WHT CHARACTER
SL6 NEXT * WHT CHARACTER
SL7 NEXT * WHT CHARACTER
SL8 NEXT * WHT CHARACTER
SL9 NEXT * WHT CHARACTER
SL10 NEXT * WHT CHARACTER
SL11 NEXT * WHT CHARACTER
SL12 NEXT * WHT CHARACTER
SL13 NEXT * WHT CHARACTER
SL14 NEXT * WHT CHARACTER
SL15 NEXT * WHT CHARACTER
Record 1: Rejected - Error on table CHAT_SL, column SL1.
ORA-01840: input value not long enough for date format
Record 2: Rejected - Error on table CHAT_SL, column SL1.
ORA-01840: input value not long enough for date format
Record 3: Rejected - Error on table CHAT_SL, column SL1.
ORA-01840: input value not long enough for date format
Record 4: Rejected - Error on table CHAT_SL, column SL1.
ORA-01840: input value not long enough for date format
I wonder if you could help me.
Thank you very much in advance.
Giorgos BaliotisSQL> select to_date('Apr 29, 2007 12:05:49 AM','Mon DD, YYYY HH:MI:SS FF3AM') from dual;
select to_date('Apr 29, 2007 12:05:49 AM','Mon DD, YYYY HH:MI:SS FF3AM') from dual
ERROR at line 1:
ORA-01821: date format not recognized
SQL> ed
Wrote file afiedt.buf
1* select to_date('Apr 29, 2007 12:05:49 AM','Mon DD, YYYY HH:MI:SS AM') from dual
SQL> /
TO_DATE(
29/04/07
SQL> Then, you defined blank space as separator, but there is spaces in your date inside your file. So, you should add double-quotes around the date field like below, and add optionally enclosed by '"' into your ctlfile.
"Apr 29, 2007 12:05:49 AM" 1060615 "Apr 29, 2007 12:05:35 AM" 306978537730 24026384 chatium.user.userinfo WAP 0
"Apr 29, 2007 12:12:51 AM" 1061251 "Apr 29, 2007 12:12:27 AM" 306978537730 24026384 chatium.channel.list WAP 0
"Apr 29, 2007 12:12:51 AM" 1061264 "Apr 29, 2007 12:12:32 AM" 306978537730 24026384 chatium.channel.listdetail WAP 0
"Apr 29, 2007 12:13:51 AM" 1061321 "Apr 29, 2007 12:13:31 AM" 306978537730 24026384 chatium.user.search WAP 0
"Apr 29, 2007 12:13:51 AM" 1061330 "Apr 29, 2007 12:13:37 AM" 306978537730 24026384 chatium.user.userinfo WAP 0Example :
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_concepts.htm#sthref477
Nicolas. -
Problem with date format convertion
Dear All, i want to convert the current system date to particular format that i have specified below in SimpleDateFormat but when ever i exceute my program it comes in different format
could you help me to solve the problem
DateFormat sdf = new SimpleDateFormat("yyyy.MM.dd hh:MM:ss");
Date today = Calendar.getInstance().getTime();
String rdate = sdf.format(today);
Date date = sdf.parse(rdate);
System.out.println("Current date and time is: "+date);i want my date to be like: *2008.09.11 05:00:17*
but the program output is: Current date and time is: Thu Sep 11 05:00:17 EEST 2008
thanksshamilsons wrote:
Dear All, i want to convert the current system date to particular format that i have specified below in SimpleDateFormat but when ever i exceute my program it comes in different format
could you help me to solve the problem
DateFormat sdf = new SimpleDateFormat("yyyy.MM.dd hh:MM:ss");
Date today = Calendar.getInstance().getTime();
String rdate = sdf.format(today);
Date date = sdf.parse(rdate);
System.out.println("Current date and time is: "+date);i want my date to be like: *2008.09.11 05:00:17*
but the program output is: Current date and time is: Thu Sep 11 05:00:17 EEST 2008
thanksA java.util.Date is just a long. So when you said "System.out.println("Current date and time is: "+date);" you called the "toString()" method of java.util.Date, which formats it to a String the way you see. You have the date formatted the way you want in the "rdate" String, so try "System.out.println("Current date and time is: " + rdate);" and see if that works out for you. -
Hi everyone,
when i set the date format mask in any field..
if i enter any wrong date format messages are coming in to loop
is this is bug of format mask?
how can i avoid this..
thanks in advance
anand mohanIt should not take you into a loop. If the "validation" against the format mask fails, a message is displayed, and the focus is returned to the field which caused the problem. Do you maybe have some method or event associated with the field which could be causing the circular behavior?
-- Brian -
Problem with date format using TEXT_CONVERT_XLS_TO_SAP
I'm using fm TEXT_CONVERT_XLS_TO_SAP to upload an xls file.
I've the following problem the date in the spreadsheet is 01.01.2010 the result in the internal table after using the fm is 01.jan.2010. What must i do to get 01.01.2010 in the internal table?
My setting in sap for the date format is DD.MM.YYYYHi,
What is type and size of your internal table field? Covert your excel column to text field. Now it is of type date i hope.
Best option is, always have the value in excel in YYYYMMDD (SAP standard format) and internal table field as of type sy-datum.
After uploading use WRITE TO statement to a character variable to convert the date as per user settings. Your current logic may not work if the date setting is different.
Thanks,
Vinod. -
Problem with date format "dd-MM-yyyy"
hi all,
i am using jdev 10.1.3.2
My application ADF Swing app.
in my database i have a table employee which contains "birthday".
my problem is that i must use date format"dd-MM-yyyy".
i added this format into "formatinfo.xml" file.
than i choose it in my EO.
i create a form which contains employees.
for example i have an employee with a birthday=25-10-1970
in my text field if user puts "1970-10-25"'which is not the best format) he will have a correct result "25-10-1970"
but if user puts "25-10-1970" he will have as result "21-02-0031" which is not the real value.
please help me.
thanks.
PS: i did some research before posting but i didn't find yetRouz,
Did you try what i said before?
* Open you EntityObject
* Expand the attribute tree
* Choose your DOB attribute
* Choose the Control hints pane on the right
* Choose Formater: Simple date format
* Choose Format mask dd-MM-yyyy
Run your application and try it.
This is how i change the format and it works perfectly.
I uses the correct format to show the date and it enables me to edit the date using the format mask dd-MM-yyyy
Edit: I just tried it myself. I can only reproduce it by removing my mask. Ergo, the application expects the default american format yyyy-MM-dd. By entering a date in the format dd-MM-yyyy the framework will convert it to yyyy-MM-dd and you'll end up with 0031-02-21.
CONCLUSION follow the steps i discribed above to set your mask and you'll be fine.
Message was edited by:
Smolders Johan -
Problem of Date format in Parameter dialog box
This problem happen In Crystal XI but not in version 8.5. When a parameter dialog box showing up it provides a calander for users to select a date. When the user select a date from the calander the prompt alway return a date in the format of (yyyy-mm-dd) regardless of whatever we set in the Windows's "Regional Settings". In our region we set date as dd-mm-yyyy.
When we edit the date in the parameter field box to dd-mm-yyyy and click OK the prompt complains and says "the date should be in the format of "yyyy-mm-dd"". Why?. Could Business Objects or anyone let me know is there a way to edit option. In our regional our clients are used to with the date format of dd-mm-yyyy.
Thanks,
RobertThank Sastry,
With an IT professional or a computer expert it does not seem to be a matter as they understand this is just another way to write date but many of our clients already used to with the dd-mm-yyyy and they are not American. If you say this was by design howcome in CR 8.5 the date in this dialog box follows the format in the regional settings. In CR 8.5 when you change date format in regional setting it reflect immediately in the parameter box. Asume what you say is true I would like to ask Business Objects that this is a backward development or just a way to purse every one in this world to follow the American style.
Come back to the parameter box. Our clients have used our software that uses CR 8.5 for many years. Not all but many of them just type in the date directly to the box. If this can't be fixed how will our support staff tell our customers? I would like to hear something from Business Objects.
Rob -
Problem in Date format display at table leve in 3.1i System
Hi Team,
I am facing an issue in 3.1i Prod System.
When i go and check at SE16 transaction and table name is TCURR. Execute the same i am getting date displayed in an unknown format.
For Eg:
Valid From Date
79908769
When i double click the same record, it displays the correct date format:
12/30/2009
when i download the table contents into excel sheet it should display the correct date format: instead of 79908769 to 12/30/2009.
But my problem is either to display the proper format of date at the table level.
Is there anyway to download the contents in correct dated format without disturbing the data elements or domain at table level.
Please let me know how to solve this problem.
Thanks,
Sunil KumarYou need to write abap program to download into the required format.
once you get the date field in your work area...
say you have date field in wa_data-budat , after that use the above syntax you will get the required format.
DATA :
v_date type sy-datum.
write wa_data-budat to v_date MM/DD/YYYY.
Please let me know if you need further information.
Regards
Satish Boguda -
Problem in date format urgent.
hi everyone,
i am developing a report in that i am passind date as DDMMYYYY, here i am not seeing any output in report that output should be sent to customet trrow mail as excel sheet,
i am succeded in that but i am getting date format problem.
that is he want to upload that file into sap, in that that the date format is YYYY / MM / DD. but i am unable to do that.
i used this stmts for that.
Concatenate v_string0(4) v_string4(2) v_string+6(2) into v_date SEPARATED BY '/' .
concatenate c_equal c_colon v_date c_colon into v_date.
but it is giving ="YYYY / MM / DD" if i remove the second stmt it is giving DDMMYYYY only can you help me in this issue.
i need that format as YYYY / MM / DD.like this.
regards,
chaithu.pHi,
Ur v_string = DDMMYYYY right,
so use concatenate statement as follows,
Concatenate v_string4(4) v_string2(2) v_string+0(2) into v_date SEPARATED BY '/' .
concatenate c_equal ` ` v_date into v_date.
if u don't want '=' also remove that from concatenate statement.
i think this will give u correct order.
Regards,
kk.
Edited by: kusuma kurapati on May 8, 2008 7:05 AM
Maybe you are looking for
-
I have a MAC desktop running OS 10.7.2 and Firefox 8.0.1. and can't print preview of web pages. On my PC, it's there just fine. (Firefox 8.0 on Windows XP). What can be done to get print preview of web pages for the Mac? Thanks. C Baher
-
Costing sheet assignment to notification
hi there i would like to know if it is possible to assign a CO costing sheet to a quality notification in quality management? this would be purely for analysis purpose. no real postings would be made. thanks
-
Hi, cant find any seetings for see the contact pictures in recall or contact list or set fast calls any solutions thx for help mario
-
It's probably me not getting all the subtilities of data binding, but isn't the example underneath supposed to work without errors ? Enter some text in the first text field and navigate to the second. The exception is thrown when the focus leaves the
-
Hi All, One of my end user complaints me that he is unable to execute T-codes. when he executes t-code it is hanging, Please help me. where i need to check for the forformance for this. system is running fine. And please give me advice on system perf