Regarding date format changes

Hi All,
I have a date variable.
Th date variable is v_doc_date which is declared like SY-DATUM.
I will get value into that variable in format <b>DDMMYYYY</b> EX: <b>18072005</b> now i want make that variable as <b>18.07.2005</b> through Function module.
Can any body tell me how can we convert DDMMYYYY into DD.MM.YYYY through function module.
Thanks in advance.
Thanks & Regards,
Rayeez.

Hi,
If you are writing it on the screen - use edit mask.
eg: write v_doc_date using edit mask '__.__.____'.
Or use this piece of code.
data: v_date(10),
      v_doc_date like sy-datum.
    v_date0(2) = v_doc_date6(2).
    v_date+2(1) = '.'.
    v_date3(2) = v_doc_date4(2).
    v_date+5(1) = '.'.
    v_date6(4) = v_doc_date0(4).
If you have to change the date in many places, just put this in a form and call it.

Similar Messages

  • Date format changed (since SP8?)

    Applied SP8 lately on a server. I guess since then the date format changed.
    It is now April 18, 2011,
    and it should be 18 April, 2011.
    I am not sure if this is because applying SP8, but what is for sure that the date format is not what we used to.
    Checked time zone. Regarding to `set time zone` it is proper (CET-1CEST).
    Please advise.

    Hi Marcel,
    Thanks for the fast reply. I will give it a try probably.
    I am still wondering what could have changed the date format.
    Originally Posted by Marcel_Cox
    I^d be suprised if it is really SP8 that changed your date format on the server console.
    In any case, the date format on the server console is controlled by the file lconfig.sys copied to the server's c:\nwserver directory at installation time.
    The following TID tells you how you can replace this file.
    Note that the TID refers to changing the code page. In your case, it is not the code page you want to change, but the country code which corresponds to the date format you want to display
    10093487: Convert existing NetWare server to different Codepages.

  • Date format changes in the middle of a program execution

    In my C code I have a series of select statements.
    When I first get a session to the database I use the following command to set the date format
    alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
    It works fine for a few queries. After a while during the program execution I see that the date format changes to 'DD-MON-YY' format. This results in a series of error in my code because I expect the date format to always be in the 'MM/DD/YYYY HH24:MI:SS' format.
    Any idea why the date format should change all of a sudden in the middle of the program execution.

    I second the idea that you should always use TO_DATE and TO_CHAR if you want to reliably convert between dates and strings.
    Without seeing your code, it is hard to say why your date format is changing, but the most likely reason is that you are changing users somewhere in the code. For example:
    SQL> show user
    USER is "OPS$ORACLE"
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003
    SQL> ALTER SESSION SET nls_date_format='dd-Mon-yyyy hh24:mi:ss';
    Session altered.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-Jul-2003 10:15:12
    SQL> connect jtest/test
    Connected.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003TTFN
    John

  • Data format changing from database to datagridview

    hi I am trying to display data from database sqlite  to datagridview the data format changed automatically
    the date in database is
    2012-02-20 16:42:10.00 but on datagrid view it appears like  20/02/2012 16:42:10,
    swOut.Write(",");
    swOut.Write(dataGridView1.Columns[i].HeaderText);
    swOut.WriteLine();
    //write DataGridView rows to csv
    for (int j = 0; j <= dataGridView1.Rows.Count - 1; j++)
    if (j > 0)
    swOut.WriteLine();
    dr = dataGridView1.Rows[j];
    for (int i = 0; i <= dataGridView1.Columns.Count - 1; i++)
    if (i > 0)
    swOut.Write(",");
    value = dr.Cells[i].Value.ToString();
    //replace comma's with spaces
    value = value.Replace(',', ' ');
    //replace embedded newlines with spaces
    value = value.Replace(Environment.NewLine, " ");
    swOut.Write(value);

    This forum is for Microsoft products, they have already and endless quantity of databases, many even freeware. 
    Try therefore for your question the forums for SQLite.
    SQLite has very special own way of datatypes.
    Success
    Cor

  • SSAS Cube parameter date format change

    Hi Experts,
    I am new to SSRS report creation. I have a parameter which is fetching date from cube. The date format from cube is YYYY-MM-DD.
    I want expression to change the date format to DD/MM/YYYY.
    I have used this expression - =Format(CDATE(Parameters!DimPromoUBUBStartDate.Value),"dd/MM/yyyy")
    but it is not working and getting the following error,
    "unable to cast object of type 'System.object[]' to type 'system Iconvertible'
    Please give your suggestions
    Thanks in Advance,
    Rajan

    Hi Rajan,
    According to your description, when you convert the "YYYY-MM-DD" formatted data from the parameter and change the format, it throw the error above. Right?
    In this scenario, the reason why you get this error because you set allow multiple values in that parameter. When we allow multiple values in a parameter, all select values will be put into a array when processing even you only select one value. And
    the CDate() function can't convert the object[]. So please unselect the allow multiple values in parameter. If you want to keep multiple values selection, you can only convert one element from the array. For example: CDate(Parameter!XXXX.Value(0))
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Date Format changes    in   Query Designer

    Hi friends,
              I have one  date field that is Keyfigure (not  a Time charecterstic) ...now   i want to display date in  DD- MON - YYYY format... but  up to modelling side my date format is DD.MM.YYYY.....
           i dont want to change in modelling side.. because.. this required format is needed only for some querys ...
       so, can  any one  suggest me is there any chance to  get the date format in the reporting side like this..(27-JAN-2007) ..
            helpful answers will be appriciated..
    Thanks
    Babu

    Hi,
    After logon to BW, goto SYSTEM at menu bar.select user profile --> select OWN DATA. You will get Windoe, in that goto default tab, there you change DATE FORMAT and save.
    If it useful assign points.
    Regards,
    sri

  • Regarding Date Format Conversion

    Hi,
    In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
    I have the code for date formatting conversion .
    What my doubt is whether  the code should be written inside the jsp page or in the javascript .
    Thanks .

    Hi
    <%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
    <%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
    <% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
    use this with your jsp
    Regards
    Abhijith YS

  • Regarding Date format in Reports.

    Hi All,
    I want to change the Date format in BEx reports. Currently I am getting MM DD YYYY. But I need it as DD MM YYYY. I had gone thru numerous posting on this issue. I changed the Date Settings in SU3. But still I am not getting the Date in correct format. Is there any other place that I have to correct the Date format???
    Regards
    Jay

    Jayanth,
    I feel in your case, going to the System (in menu)-User Profile-Own data then, you get, Maintain user profile. Here you have the option of Maintaining, Date format.
    Hope this helps....

  • Date Format  changes in  the Reporting side..

    Hi friends,
    I have one date field that is Keyfigure (not a Time charecterstic) ...now i want to display date in DD- MON - YYYY format... but up to modelling side my date format is DD.MM.YYYY.....
    i dont want to change in modelling side.. because.. this required format is needed only for some querys ...
    so, can any one suggest me is there any chance to get the date format in the reporting side like this..(27-JAN-2007) ..
    helpful answers will be appriciated..
    Thanks
    Babu

    Hi Babu,
    If the format is required in the Bex analyser then its system dependent setting .
    Control panel - > Regional & language options -> Regional options -> Customize -> Date -> Short Date format -> DD-MMM-YYYY(Change) .
    Do not forget to log off and re-login into bex,execute queries and see the output.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • R2 to R3 upgrade Schedule Date Format Changed

    We recently did an upgrade from BOXI r2 to R3. We did the installation wizard using the r3 image to the same server.
    What we have noticed now is that all the schedule dates in the CMC for our reports have changed format from US to EURO. 01/13/08 to 13/01/08
    We are still on the same server, and it appears that the time format is comming from our web server now.
    Dose anyone know how to change the date format on Tomcat to reflect standard US time and Not Euro.
    Or if this isnt the case where else could I check for date formats, we have checked the CMC, the Server itself and the Preferences.
    Thanks
    KF
    Edited by: Kris Fox on Dec 9, 2008 11:47 PM
    Edited by: Kris Fox on Dec 9, 2008 11:47 PM

    Hello,
    did you checked the locale of your OS ?
    When you say you checked the preferences you mean the preferences of InfoView ?
    Regards
    -Sebastian

  • Date format changed while printing invoice

    Dear All,
    Since yestardayin production server the date format of invoice is like 12.02.2010,but form morning it is comming like 2010.02.12.
    I have checked in quality and it is still comming like 12.02.2010.
    Could you please tell me why is it comming?
    Regards,
    Amar

    Dear Amar,
    1 Check the user profile for default type od date value in production system and compare it with quality. If this is not as per the quality system then change it.
    2 if both system quality and production both have same date format then  you have to debug and find out the issue.
    Hope you need not to go for second point.

  • Urgent ......regarding date format in SAP Script

    In my MAIN WINDOW  I have date fields like Date of Manifacture, created date and Expiry date.
    So, currently  I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
    But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
    DEFINE &outdate& = &mchar-vfdat&
    SET &outdate& MASK = 'YYYY-MM-DD'.
    but still it is showing format YYYY-MM...
    Plz help me how to print my desired date format...
    I am waiting for ur reply...
    Regards,
    Kumar

    Hi Kishore kumar,
    What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
    i.e.
    /: SET DATE MASK = 'YYYY-MM-DD'
       &mchar-vfdat&
    /: SET DATE MASK = 'YYYY-MM'
    Regards,
    Sunil

  • Regarding Date Format in Scripts

    Hi
    i'm modifying sales order from. In rvorder01 for i'm getting sale order number and date from &VBDKA-VBELN& / &VBDKA-AUDAT& fields but when i'm printing date (VBDKA-AUDAT) it is printing as 23.09.2007 but my requirement is to print the date in 23/09/2007 format . can any one plzz let me know how to convert date format.
    Thanks & Regards
    Munna

    Use this
    /: SET DATE MASK = 'DD/MM/YYYY'.
    &VBDKA-AUDAT&
    Regards,
    SaiRam

  • Regarding Date format in output text file

    Hi Frnds,
    i am taking the data from vbak table into one internal table T_vbak, in that i am having vdatu field also, and after that using GUI_Download function module i am downloading that internal table data to one text file into presentation server.
    But the date format is displaying in yyyymmdd format in the text file, but i want the format like mm/dd/yyyy in the text file, can anybody plz help me....

    Hey Bala,
    You can use the following conversion routine for converting the date from yyyymmdd format into mm/dd/yyyy.
    data: l_date(10) type c.
    Loop at t_vbak into wa_vbak.
    CONCATENATE wa_vbak-vdatu4(2) wa_vbak-vdatu6(2) wa_vbak-vdatu(4) INTO l_date SEPARATED BY '/'.
    wa_vbak-vdatu = l_date.
    modify t_vbak from wa_vbak.
    Endloop.
    Regards,
    Chetan.
    PS: Reward points if this helps.

  • BAPI - Webservice, Date-Format changed

    Helly everyone,
    I've got a problem when creating a WS based uppon a BAPI (BAPI_FLIGHT_GETDETAIL). The Webservice itself works fine. But if I use the BAPI I need to use the Date-Format DD.MM.YYYY for the required Input-Field Flightdate. In the WS I need to use the format YYYY-MM-DD. Now, is there any way to use the DD.MM.YYYY-Format in the WS also?
    Greetings

    Hi Marcel,
    Thanks for the fast reply. I will give it a try probably.
    I am still wondering what could have changed the date format.
    Originally Posted by Marcel_Cox
    I^d be suprised if it is really SP8 that changed your date format on the server console.
    In any case, the date format on the server console is controlled by the file lconfig.sys copied to the server's c:\nwserver directory at installation time.
    The following TID tells you how you can replace this file.
    Note that the TID refers to changing the code page. In your case, it is not the code page you want to change, but the country code which corresponds to the date format you want to display
    10093487: Convert existing NetWare server to different Codepages.

Maybe you are looking for

  • Quirk with storage VI's and timestamp data.

    This is a minor bug (since it's easy to work around if your aware of it) I'm running LV 8.0.1 and writing a timestamp through the Write Data Storage VI, will store different times depending on whether I pass just the timestamp in or the timestamp wra

  • Configuring FT on ACE Modules

    Hi, I am trying to configure FT on ACE modules, with the following commands ft interface vlan 20   ip address 172.16.20.1 255.255.255.252   peer ip address 172.16.20.2 255.255.255.252   no shutdown ft peer 1   heartbeat interval 300   heartbeat count

  • BAPI for ABCO Tcode?

    Hi Am looking for a BAPI for transaction code ABCO-Adjustment Posting to Areas? Any help please. thanks Manohar

  • What triggers long exposure 15fps mode for color?

    Hi, As most of us are aware the color stream automatically switches to 15fps long exposure mode when it detects low light situations. No this is not a thread to complain about the sensitivity of it (although some control would be very welcome), but I

  • Photoshop CS4 and scanning via Twain scanners

    I will shortly be building my new Windows 7 64 bit high end machine, and installing CS4 64 bit on that machine. I have several scanners, which appear to have available suitable drivers for Windows 7 64 bit. But from what I am reading, CS4 64 bit does