Query on Date Format

Our customer wishes all the dates to accepted & displayed in the format dd-mmm-yy format (E.g. 10-Oct-11), both on the screen and in reports. How to change the date format? What are the implications of the change in date format. The system is still in the BPP phase. The reason for this customer request is that, they are worried that when they download any report into Excel format, the date will appear in the mm-dd-yyyy format, if it is accepted in SAP in dd-mm-yyyy format. Is this true? I am a bit confused. Please help me.
-Shambvi

Hi Shambvi,
You can change it based on user name via SU3 (Su01) - defaults - Date format.
It is only representation, so doesn't have an impact on system in general.
To change it system wide, go to SPRO - SAP Netweaver - General settings - Set countries - Define countries - Double click relevant country code - change date format.
Regards,
Dilek
Edited by: Dilek Adak on Oct 10, 2011 9:05 AM

Similar Messages

  • Query regarding date format in BIP

    Hi
    1. Is there a way to find the date format which is set in the parameter.
    for eg.- Suppose there is a parameter Startdate mentioned in the format dd-mm-yyyy. If user chooses Startdate: dd-mm-yyyy, can we find the format, so that we can always convert it to one standard dd-mon-yyyy format?
    2. Is there a way to always convert the date to standard dd-mon-yyyy format in BI . Is there an option in BI to do this?
    Thanks
    Amit

    Amit,
    Get your date in this format in XML.
    YYYY-MM-DDThh:mm:ss+HH:MM
    Then there are lot of functions, you can apply on this to get the formatted date you wanted.

  • Query: Setting date format after generation & deployment..

    Howdy.. read a few threads on this issue but can't find a solution that works for me.. would be great if someone could help clarify this for me.
    Our application is up and running but i've sinced noticed the date is in american month/day/year format, we need it in day/month/year format (dd/mmm/yyyy). If we can avoid re-generating or re-deploying just for this issue it would be a great benefit.
    One suggestion I read claimed:
    "You can set the format in dateformat.properties, which is located in the root of the classpath."
    Which sounds great, but i've searched the entire drive that both jdeveloper/jheadstart and the oracle application deployment are on and not found any file named "dateformat.properties". What does it mean if it's not there..?
    Another solution I was looking into involved this code:
    <af:outputFormatted value="#{row.Weekenddate}">
    <af:convertDateTime pattern="dd/MMM/yyy"/>
    </af:outputFormatted>
    but i'm not sure where to insert this code to get the desired effect, is it possible to edit some xml file to add this code into an already generated & deployed application? Or would this need to be added prior to deployment..
    Thanks in adv. for any suggestions..

    Thanks again, i've checked the code and it mostly appears to be in accordance with the samples you supplied.. included below for reference.
    I'm not sure if this affects the formatting process or not but I thinks it's relevent to mention that I previously altered the tables properties and set this particular column/field (weekenddate) to custom -> af:outputText, to make it uneditable by the user at run time. Could this have affected the convertDateTime pattern pickup since it is specified inside an af:selectInputDate tag ?
    <af:column id="Tasks2WeekenddateColumn" sortable="true" noWrap="true" sortProperty="Weekenddate" >
    <f:facet name="header">
    <af:outputLabel value="Weekenddate" showRequired="#{bindings.Tasks2Weekenddate.mandatory}" styleClass="af_column_header-text"/>
    </f:facet>
    <af:selectInputDate id="Tasks2Weekenddate" value="#{row.Weekenddate}"
    required="#{(bindings.Tasks2Weekenddate.mandatory) and (!Tasks2CollectionModel.newRow)}" >
    <af:convertDateTime pattern="#{nls.datepattern}"/>
    </af:selectInputDate>
    <managed-bean>
    <managed-bean-name>nls</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.util.MessageFactoryMap</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    <managed-property>
    <property-name>messageFactory</property-name>
    <value>#{jhsMessageFactory}</value>
    </managed-property>
    </managed-bean>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/JhsCommon-beans.xml,/WEB-INF/AppModule-Breadcrumb-beans.xml,/WEB-INF/Tsusers-beans.xml,/WEB-INF/Tasks2-beans.xml,/WEB-INF/Tasks-beans.xml,/WEB-INF/Users-beans.xml</param-value>
    </context-param>

  • Date format in query results

    HI, newbie to sql and Oracle. Quick question, my associate and I view date and timestamps in the same column in our db tables. We can run a query requesting date and time returned in sqlplus and it displays the date then the time. However, running the same query in sql developer worksheet window the results return only the date. We believe this is a formatting issue in sql developer. We check Tools > Prefs > Database > NLS Parameters under Timestamp format and it shows "DD-MON-RR HH.MI.SSXFF AM". We are not sure this is right but we are not sure we are looking in the right area as well. Any assistance with this is greatly appreciated.
    thx
    tc

    Never mind. Found it. Had to copy from that field in to the one above it to get the view needed.

  • Date format in Query Result Window

    In recent versions on OSD (trying with V3.2.20.09 Build MAIN-09.87) I've been unable to change the date format for results shown in the query results window via the NLS settings in Preferences, it's the same for other users on v3 in my area. Can anyone advice on whether anything can be done to resolve this issue or is there a bug in recent additions of OSD
    Frustrating having a result show as 01-DEC-12 and I don't know whether it's 01-DEC-2012 or our default date of 01-DEC-4712 without having to hard code a to_char in my sql which I don't want to be doing all the time to analyse my results
    I have an old version 1.5.4 Build MAIN-5940 and changing the NLS settings in preferences refrects correctly in the query results window
    Any advice appreciated, Thanks

    Thanks, looks like it's permission, tried on a different database supposed to be the same and it works when I update the preferences or run the alter session statement. Call to my admins to get on the case
    Ta
    for anyone else having simular issues, help are the statements I've tried to confirm it's permissions
    alter session set NLS_DATE_FORMAT = 'DD-MON-RR HH24:MI:SS'; -- Original
    alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR HH24:MI:SS';
    commit;
    SELECT *
    FROM nls_session_parameters
    Edited by: lakeuk on 14-Nov-2012 06:37

  • Date format in BI query

    Hi,
    We need to display a single date format independent of date format of SAP User settings. For ex: as below.
    In a current query the  date, depending on the user's configuration could appear as:
    dd.mm.yyyy (English format)         or        yyyy-mm-dd (Swedish format)        or        mm.dd.yyyy (American format)
    I need to change some of the queries date format as below.
    a) Change all dates in query outputs and parameters to the format YYYYMMDD
    b) Change all months in query outputs and parameters to the format YYYYMM
    c) Change all financial periods in query outputs and parameters to the format YYYYPPP
    Thanks,
    Jitu

    Hi
    I think u have to use the ABAP code at the query level.
    First take the date in one variable zdate_var  and then if u want the below , then
    data : zdate_var_year type d,
               zdate_var_mm type d,
              zdate_var_dd type d.
    zdate_var_year = zdate_var(4).
    zdate_var_mm = zdate + 4(2).
    zdate_var_dd = zdate + 6(2).
    YYYYMM = zdate_var_year , zdate_var_mm.
    LIke this u can have ur o/p as per ur wish,
    Hope u got it ,
    Thanx & Regards,
    RaviChandra

  • Date format mask in Enter-Query mode

    Hi,
    I'm developing a Form which is able to query the masterblock from a detail-item.
    The queryable detail-item is a date field and has a datatype: DATETIME. When a new record is entered the values in the date field are stored in the database like "18-10-2002 15:04:02"
    When the form is in enter_query mode the user must be able to enter 18-10-2002 (DD-MM-YYYY format mask, so without time mask). When execute the query with this date format the query is not able to find data.
    I used a Key-Execute-Query on the detailblock like this:
    SELECT 1.COLUMN
    , 2.COLUMN
    INTO :1.COLUMN
    , :2.COLUMN
    FROM TABLE.1
    , TABLE.2
    WHERE 1.COLUMN = 2.COLUMN
    AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    Can anyone please help me?
    Regards,
    Ronny.

    Hi Ronny,
    I'm not sure to have got exactly your issue (especially why you have to use that select in master-detail query), but I suggest you to substitute
    ...AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    with
    ...TRUNC(1.COLUMN) = TO_DATE(:avg.datum,'dd-mm-yyyy');
    To be fair, I would use it in the where clause, even if you set it dinamically.
    Let us know,
    Marco

  • Date format conversion in BEX query level

    Hi ,
          We had a date field in the numeric format like 735.020 in the cube level, but when we execute the query the values for thsi date field is changed in to date format like 31.05.2013.
    we are not having any conversion routines and the date fields are used directly in the query .

    Hi,
    Try the below class file or may be create a method in your controller. It will resolve your problem.
    package com.XXX.DateFormatForSAP;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class FormatSAPDate {
    public static String changeDateFormat(Date sapDate) {
    String formattedDate = null;
    SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    formattedDate = dateFormat.format(sapDate);
    return formattedDate;
    Try this code and let me know.
    Regards
    Mukesh

  • Wrong query results: due to date format?

    hello,
    I have oracle 11 and when I execute this query:
    select MYDATE from mytable order by MYDATE DESC;
    it get me a bad order:
    MYDATE
    25-MAR-09
    13-MAR-09
    10-MAR-10
    10-MAR-10
    31-JAN-10
    29-JAN-10
    28-JAN-10
    08-DEC-09
    07-DEC-09
    06-DEC-09
    05-DEC-09
    is it may due to a wrong date format?
    where have I to look out? init.ora?

    But, there is no problem at my end (Using Oracle 10.2.0.1 on win xp):
    SQL> create table t(mydate date);
    Table created.
    SQL> insert into t values(to_date('25-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('13-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('31-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('07-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('05-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('06-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('08-DEC-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('10-MAR-09','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('29-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('10-MAR-10','DD-MON-YY'));
    1 row created.
    SQL> insert into t values(to_date('28-JAN-10','DD-MON-YY'));
    1 row created.
    SQL> select * from t;
    MYDATE
    25-MAR-09
    13-MAR-09
    31-JAN-10
    07-DEC-09
    05-DEC-09
    06-DEC-09
    08-DEC-09
    10-MAR-09
    29-JAN-10
    10-MAR-10
    28-JAN-10
    11 rows selected.
    SQL> SELECT MYDATE FROM T ORDER BY MYDATE DESC;
    MYDATE
    10-MAR-10
    31-JAN-10
    29-JAN-10
    28-JAN-10
    08-DEC-09
    07-DEC-09
    06-DEC-09
    05-DEC-09
    25-MAR-09
    13-MAR-09
    10-MAR-09
    11 rows selected.
    SQL> SHOW PARAMETER NLS_DATE;
    NAME                                 TYPE        VALUE
    nls_date_format                      string
    nls_date_language                    stringCan you show us the output of
    show parameter nls_date;
    Regards
    Girish Sharma

  • Date Format in Visual Studio Query Result Window

    Most vendor tools let you change the date format to show datetime in its query results window.
    But .NET does not have this.
    The ability to change this should be in located in Tools|Options but its not there.
    Can it be added in the next release?
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-RR HH:MI:SS' does not work. btw.
    .NET and/or ODT over-rides it.

    Why would you expect Microsoft to write stuff for an Oracle plugin?! Why on earth would you want to see anything other than the actual raw data that YOU requested in the results of a query? Surely formating/displaying a datetime is a presentation layer thing not a database layer thing! If you're really that bothered re-write your SQL till you get what you want.

  • How to convert milliseconds to date format in sql query

    Hi All,
    The following code is in java.     
    String yourmilliseconds = "1316673707162";**
    Date resultdate = new Date(Long.parseLong(yourmilliseconds));
    could you plese tell me how to convert milliseconds into date format in query and comparing with another date like(sysdate-3)

    Hello,
    http://stackoverflow.com/questions/3820179/convert-epoch-to-date-in-sqlplus-oracle
    Regards

  • How i can change date format in the query

    I have made a query and Document date format is DD/MM/YYYY but i want Document date Format as YYYYMMDD. Please help me out as soon as posible.
    Thanks is advance.

    Hi Harman,
    By default query shows same date setting what is maitianed in SU01 (user maintenance). User can set the dates as they want. Ask user to log in BI system and go to system> User Profile> Own Data. They can select the date format and save the changes.
    If you want to display same setting for all user, please select the format whenever you create any users and change for existing users.
    Regards,
    Kams

  • Change date format in reporting (query)

    I need to change date format from dd.mm.yyyy to dd/mm/yyyy in reporting (query)

    Hi Suresh,
    Go to transaction su01d in that enter your user.
    Now go to defaults and change the date format.
    Ya but this format will be user specific, so if you want everyone to see that format you have to change it for all.
    Regards
    Mansi

  • Date formats in BI Query designer

    Hi gurus
    We have enhanced our cube 0sd_co3 where we have taken a number of dates such as Railway Receipt date, Actual Goods Issue date, LFdat, thses are only few examples. Now our reporting scenerio demands reporting based on thses dates as given in our time dimensions such as
    YYYYMM        Qty
    but not based on the date mapped in the time dimension in the cube. but based on these dates
    in oracle we have the to_char function through which we change the format of date while writing sql query
    so if there is any option of changing date format in query without changing the modelling
    Pl suggest
    Thanks
    Shivani

    Hi,
    You can create new characteristic of char number 6 . Include it in the data target. Populate it via a update rule ( Routine).
    Use input as standard date (Railway Receipt date) and then pass the value to the new char in the required format (YYYYMM). Follow same thing for other dates also.
    Let me know if you have doubt.
    Regards,
    Viren

  • Change display Date format from 06.2011 to june 2011 in output of Query

    Hi All,
                Change display Date format from 06.2011 to june 2011 in output of Query  Execution. i used time charcteristics 0calmonth in query, output display is coming 06.2011, i want to display output in june 2011 format, anyone tell me how to convert this Date format.

    Hi Nandish,
    as tibollo said you just need to mark 0CALMONTH with text in RSD1.
    Kindly note that you don't need to do data load for this object.
    It will automatically derive by system.
    Just change the Info object 0CALMONTH in RSD1, Go to Master Data/text column and check mark on with text.
    Then activate it.
    Regards,
    Ashish

Maybe you are looking for

  • IPhone 4S is loosing connection "no signal" - "searching" after iOS 5.0.1 update

    Before the upgrade My Iphone was well, without problem, but yesterday 11/nov/11  I decided upgrade to ios 5.0.1 and my problems began, just when finished the upgrade my phone didn´t recognize my Sim, so i turbed off an on and the problem dessapered,

  • ALV Excel in-place in Portal

    Dear gurus, i wonder if: 1) ALV Excel inplace can be used within portal 2) if yes, what configuration steps I must maintain (if there is any document about it, could anybody point me to it?) 3) if not, can anybody suggest any alternative? I need to h

  • Help for a newbie : cfquery return the SQL Statement as text

    Hi All, After installing Coldfusion ( build in web server) and Oracle database 10g express edition i am trying to do some basic test on how to query table data using coldfusion datasource name. I have been successfully able to create a DSN = ORA1 wit

  • Vista/outloo 2007 sync

    I have download the lastest PC suite, however when i try to sync with outllok my phone give an error message. how can i get around this please?

  • JMS message:

              Hi,           We are using weblogic 6.1 sp2 cluster with two serevrs.And also we have JMS message           client.How can i use cluster in JMS message?           Currently my JMS message URL is xxx.jms.PROVIDER_URL=t3://localhost:7001.