Reg : date format conversion from dd.mm.yyyy to mmddyyyy

hi ALL,
is there any function module which can convert date format
from <b>dd.mm.yyyy to mmddyyyy</b>.
Thanks in advance

Hi,
Please check the following
CONVERSION_EXIT_PDATE_INPUT Conversion Exit for Domain GBDAT: DD/MM/YYYY -> YYYYMMDD
CONVERSION_EXIT_PDATE_OUTPUT Conversion Exit for Domain GBDAT: YYYYMMDD -> DD/MM/YYYY
SCA1 Date: Conversion
CONVERSION_EXIT_IDATE_INPUT External date INPUT conversion exit (e.g. 01JAN1994)
CONVERSION_EXIT_IDATE_OUTPUT External date OUTPUT conversion exit (e.g. 01JAN1994)
CONVERSION_EXIT_LDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD)
CONVERSION_EXIT_SDATE_INPUT External date (e.g. 01.JAN.1994) INPUT conversion exit
CONVERSION_EXIT_SDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD)
TB01_ADDON
CONVERSION_EXIT_DATEX_INPUT
CONVERSION_EXIT_DATEX_OUTPUT
Hope this would surely help you out.
Thanks and regards,
Varun.

Similar Messages

  • Date Format Conversion from MM.DD.YYYY to YYYYMMDD

    Hi All,
    I am trying to load data from r/3, and i have date format as MM.DD.YYYY in source system.how can i convert this into YYYYMMDD format in transfer rules(I know that we have to write a routine in transfer rules).Could anybody help me out pl?..pl give me conversion routine for it.
    Here BW Filed is 0DATE and R/3 Filed is ZZDATE.
    regards
    murali.
    Message was edited by: Murali

    Hi,
    Try to under stand what I am asking :
    <b>What is the domain(or data type) used for the ZZDATE field.</b>
    Ok ,
    If some records are having proper format and others are having wrong format, even we canot correct this with routine also. So in this case you have to edit manually at PSA, then do upload.
    You are right, when we are populating data to ODS , if there is any wrong format of value, it will not disply the error at the time of loading .It will through the error at the time of activation.
    With rgds,
    Anil Kumar Sharma .P

  • Date format conversion from MySQL

    Hi my dear friends. I have some problem with the date format.
    I am using MySQL version 3, LabSQL and Labview7.1
    In the MySQL, the date format reads as 2006-12-18 14-51-25
    while, when querying in Labview, it reads 18-Dec-06 14-51-25.
    So when using this date (18-Dec-06 14-51-25) to query further. I got problems as MySQL does not recognise this format.
    How can I convert 18-Dec-06 to 2006-12-18?
    It might sound easier to change but for the year how do I change it to proper 2006, not 1906?
    Your solution will be helpful. Thanks in advance.
    Clement

    astroboy wrote:
    Hi Ravens. I think that not all computers have the same settings. Is there a way how can make sure that it still works despite of different settings in esch PC?
    By auto-changing registry?
     Clement
    There probably is a way to do that, but I don't know how.  I don't think it is a good idea to change the PC settings in that way because it would interfere with all other programs on the PC.  Suppose the user wants the format of date and time to remain the way it is for other programs or looking at file/directory properties.
    Rather than basing your functions on the system format settings, use the format string functions within labview that will make the date/time to appear the way you want it to.  Look at the format date/time string function on the timing palette.  Also, format into string on the string palette.

  • Date format conversion from yyyy-mm-dd to mm-dd-yyyy

    Hello Experts,
    In my application one of the context element
    wdContext.currentContextElement().getEmployee_employmentDate()
    returns the value as 1978-06-15.
    Can any one suggest me how to convert this date into          06-15-1978 in webdynpro java.
    Thanks and help is really appreciate.

    Hi Bala,
    It tried this
    import java.util.*;
    import java.text.*;
    SimpleDateFormat formatter
    = new SimpleDateFormat ("mm-dd-yyyy");
    Date day = wdContext.currentContextElement().getEmployee_employmentDate()
    System.out.println("for:" + formatter.format( day ));
    ...the format is changed 1978-15-06....but now the but is overwritten by 00. it outputs 00-15-1978.
    Do I need to include any other step in between??
    Thanks,
    James

  • RE: Oracle DATE data format conversion..

    <C.M> Motta's question about dates and oracle>
    Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
    particular about how date strings are formatted, and if you get it wrong,
    you get the (unhelpful) message that C.M. Motta showed us. However, if
    you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
    If you do need to format the date prior to interacting with Oracle, use the
    following format:
    dd-mmm-yy <time component>
    You can change the default format, but it is not easy.
    If you customise Express generated code that interacts with an Oracle
    database, again, make sure that you pass a DateTimeData, and not the
    .TextValue.
    Good luck!
    Richard Kirk

    Date: Wed, 06 Nov 1996 08:18:37 -0500
    To: "C. M. Motta" <[email protected]>
    From: Jim Milbery <[email protected]>
    Subject: Re: Oracle DATE data format conversion..
    Cc: [email protected]
    Cheers:
    Most likely what is happening is that you are using the default date
    format of Oracle, and you are sending a four-character year. As follows:
    SQL> insert into jimbo values ('01-dec-1997')
    2 /
    insert into jimbo values ('01-dec-1997')
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire inputstring
    >
    Oracle defaults to a format of 'dd-MON-yy'
    You can either truncate the year, or manipulate the date to match the standard
    database as follows:
    insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
    \jimbo
    At 09:21 AM 11/6/96 -0200, you wrote:
    Forte Users,
    First, Id like to thank all those who answered my question on
    droplist & SQL. I got just what I was looking for: its up and runnunig
    now.
    I have another question: Im trying to insert a DATE into an Oracle
    database. The source date is:
    data : DateTimeData = new;
    data.SetCurrent();
    So, when I try to insert data.Value or data.textvalue into DB, I
    get the following exception:
    ORA-01830: date format picture ends before converting entire
    input string.
    Are there any suggestions?
    Thanks for your help,
    C.M. Motta
    ====================================================================
    Jim Milbery
    Milbery Consulting Group
    132 N. West St., Allentown, PA 18102
    O: 610 - 432 - 5350 F: 610 - 432 - 5380
    E-Mail : [email protected]
    ====================================================================

  • Problem with date format conversion

    Hi All,
    I was trying to load from a flat-file to an ods through psa. the file has a date format which is mm/dd/yyyy. i want to convert that to yyyymmdd. i created a custom object ZDAT for this field of type char with length 10. i wrote a code in transfer routine for the conversion as follows:
    DATA : ZT1 LIKE SYST-DATUM,
    STR1 TYPE STRING,
    STR2 TYPE STRING,
    STR3 TYPE STRING.
    SPLIT TRAN_STRUCTURE-/BIC/ZDAT AT '/'
    INTO STR1 STR2 STR3.
    CONCATENATE STR3 STR1 STR2 INTO ZT1.
    RESULT = ZT1.
    it reported error in PSA records while loading aS " Infoobject /BIC/ZDAT does not contain alpa-conforming value 20050321.
    P.s: for this record i was abt to load 03/21/2005 to zdat.
    thanks,
    anitha.

    hi anitha!
       ok!
      in the transferrules you use the ZDAT as an field for date in transferstructure. but in info source use the 0calday.
    so now
        you need to write your routine in the transfer rules for 0calday which can be derived from zdat which can be derived from the zdat.
    so your Transfer structure will be same as
       zmid, zmatgrp, zdat, zcid, zloc, zqty
    But your Info source must be like
       zmid, zmatgrp, 0calday, zcid, zloc, zqty
    and in transfer rule i suggest you to use the following code for the 0calday.
        DATA : ZT1 LIKE SYST-DATUM,
         STR1 TYPE char(2),
         STR2 TYPE char(2),
         STR3 TYPE char(4).
         SPLIT TRAN_STRUCTURE-/BIC/ZDAT AT '/'
         INTO STR1 STR2 STR3.
         CONCATENATE STR3 STR1 STR2 INTO ZT1.
         RESULT = ZT1.
    hope it makes things clear....
    with regards
    ashwin
    Message was edited by: Ashwin Kumar Gadi

  • 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

  • How to change the date format  YYYYMMDD to MM/DD/YYYY

    Hi ,
    How to change the date format  YYYYMMDD to MM/DD/YYYY .
    Ex :  20071008  to 10/08/2007
    Is there any function module for this ??
    Regards
    Rahul

    Hi Sharma,
    check the code:
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
    PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
    date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
    date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
    date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
    date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
    SELECTION-SCREEN END OF BLOCK b2
    FORM getmonth .
    SELECT mnr
    ktx
    ltx
    INTO TABLE T_month
    FROM t247
    WHERE spras = 'EN'.
    IF sy-subrc NE '0'.
    MESSAGE I "Message - Not able to get month values from the table T247
    ENDIF.
    ENDFORM.
    DATA : temp_date(16) TYPE c,
    temp1_date(60) TYPE c,
    year(4) TYPE c,
    daymonth(11) TYPE c,
    daymonth1(11) TYPE c,
    month(9) TYPE c,
    day(2) TYPE c,
    mon LIKE t247-ktx,
    len TYPE i .
    MOVE date TO temp1_date .
    CONDENSE temp1_date NO-GAPS.
    MOVE temp1_date TO temp_date .
    IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    _len = STRLEN( _daymonth1 ).
    l_len = 13 - len.
    SHIFT daymonth1 RIGHT BY len PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    SORT t_month BY monthltx.
    READ TABLE t_month WITH KEY monthltx = month.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    len = STRLEN( month ).
    CONDENSE daymonth NO-GAPS.
    SHIFT daymonth LEFT BY len PLACES.
    day = daymonth.
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT i_date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    SHIFT daymonth1 LEFT BY 2 PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    TRANSLATE month TO UPPER CASE.
    SORT t_month BY monthstx.
    MOVE month to mon.
    READ TABLE t_month WITH KEY monthstx = mon.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    CONDENSE daymonth NO-GAPS.
    day = daymonth+0(2).
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
    CONDENSE temp_date NO-GAPS.
    IF STRLEN( temp_date ) EQ 10.
    o_date0(4) = temp_date6(4).
    o_date4(2) = temp_date3(2).
    o_date6(2) = temp_date0(2).
    ELSE.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ENDIF.
    ENDIF.
    IF STRLEN( o_date ) NE '8'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ENDIf.
    ENDFORM. " f0100_conv_date
    Reward if helpful.
    Regards,
    Harini.S

  • How to change date format in select-option (mm.yyyy).

    Hi,
       Plz, How to change date format in select-option (mm.yyyy).
      in my selection screen date type selection-option is there ,when i am enter date   it's  taken  dd.mm.yyyy format,but i want mm.yyyy format.
    how to set that .
    Regards,
    Kk.

    sorry
    parameters : pmonyr type spmon or
    select-options : sspmon for PGPL-spmon .
    or what table ccontains spmon.
    regards
    shiba dutta

  • Can we change the date format to be dd/mm/yyyy?

    Can we change the date format to be dd/mm/yyyy?

    Hello leahmaree,
    Yes, you can:
    Click the Options tab
    Click the Language & Formatting label
    Set the Date Order preference
    I hope that helps,
    Brian

  • Convert date format YYYYMMDD to DD.MM.YYYY

    hi
    i was wondering is there a FM which convert date format YYYYMMDD to DD.MM.YYYY
    instead of u know cutting the YYYY and MM and DD and concatement them again

    Hi ,
    See this piece of code
    Data : w_date type dats value '20080903',
              w_date1(10),
    Constants : C(1) value '.'.
    w_date1 = w_date.
    concatenate w_date+6(2) w_date+4(2) w_date+0(4) into w_date1 separated by C.
    Write : / w_date1.
    With Regards.
    Alwasy Learner

  • Date Format Conversion Problem

    Hi I am having trouble converting excel files to PDF.
    I am in Australia and so we use the date format dd/mm/yyyy.
    However when I convert to PDF it changes the date to the American format mm/dd/yyy.
    For example if the date in Excel is 07/08/2013 (7th of August 2013) after conversion to PDF it displays as the 08/07/2013 (8th of July 2013).
    Can someone please tell me how to get Adobe CreatePDF to convert to the correct date format?

    DrClap wrote:
    From the API documentation for SimpleDateFormat:
    "Text can be quoted using single quotes (') to avoid interpretation."
    So your format should be:"yyyy-MM-dd'T'kk:mm:ss.SSz"(Note that I added the "z" at the end to handle the timezone part of your input.)From the description of the OPs problem - that of obtaining the "date" information from an XML file - it seems easier to remove the unwanted characters than to add single quotes where needed.

  • DATE FORMAT Conversion FOR SQL Reports

    Hi,
    Am building a report and am stuck here where this piece of code that throws the following error
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    My query goes some thing like this
    DECLARE @StartDate varchar(15),
    @EndDate Varchar(15)
    SELECT @StartDate = '01/08/2014',
    @EndDate = '31/08/2014'
    SELECT DISTINCT
    [Operation] = CASE WHEN p.DATE_OF_START BETWEEN @StartDate AND @EndDate THEN 'Add'
    ELSE 'Update' END
    FROM SNZ_HR_Reporting_POSMGNT as s
    LEFT OUTER JOIN PERSON as p on s.EMP_NO = p.EMP_NO
    WHERE s.CHANGE_DATE BETWEEN @StartDate AND @EndDate
    The date format in the column DATE_OF_START  is like yyyy-mm-dd 00.00.00.000 .
    My question is how to convert this format to dd/mm/yyyy format and execute the queries
    Many Thanks,
    Bhanu

    SQL Date Format:
    http://www.sql-server-helper.com/tips/date-formats.aspx
    Please Mark This As Answer if it helps to solve the issue

  • Date format conversation in OBIEE

    Hello guys
    I am a quick question about how to stop OBIEE from using to_date conversation? The date format in the db is dd/month/yy, and when I run any report in OBIEE answer using Date columns, it will always convert the format to "dd/mm/YYYY". The sql generated will always have a to_date() in where clause..
    Is there a way to not have OBIEE does that and just show the date with format as it is and drop the to_date conversion in SQL?
    Thanks

    I think you are getting confused here. Oracle's default date format is dd-mon-yyyy. So when you run a query like this:
    DATE_COLUMN = '01-Nov-2009'
    Oracle applies an IMPLICIT data type conversion to your date string and converts it to a date data type. Whether you allow Oracle to do the implicit conversion or do it explicitly like this DATE_COLUMN = To_date('01-Nov-2009', 'dd-mon-yyyy') should always result in the same query performance. When to TO_DATE functions affect query performance? When you apply the function over the DATE_COLUMN like this:
    TO_DATE(DATE_COLUMN, 'dd-mon-yyyy') = '01-Nov-2009'
    Why? Because indexes on DATE_COLUMN WILL NOT be used unless you have defined a function level index with a index column using the function: TO_DATE(DATE_COLUMN, 'dd-mon-yyyy'). My guess is that your DATE_COLUMN is not a date but a varchar2, therefore when you pass in To_date('01-Nov-2009', 'dd-mon-yyyy') Oracle does an IMPLICIT conversion of your DATE_COLUMN to DATE data type to match the data type of your where condition hence it is taking long to execute as no indexes are used. Can you confirm what is the exact data type of the DATE_COLUMN you are using to filter on? Do you have an index defined in that column? Can you confirm exactly how is the index is defined? Have you ran statistics on the table AND the indexes as well?

  • Date format conversion

    In one of my receiving form I am storing the exp_date in the format RRRR/MM like 2010/03
    And in my irradiation log form the user will enter or scan exp_date in the format 201003. (RRRRMM)
    Now I hae to compare this date as validation with my recieving date.
    So receiving has **2010/03**
    and irradiation log has **201003**
    How to use either decode or other function to remove the '/' and compare the dates in both tables
    and then save the date in the log table in the format MM/DD/RRRR
    Thanks,
    Anu

    If you're using DATES then they're stored as DATES.
    Just compare them rightaway...
    Formatting is to be used when the date needs to be queried and presented.
    Unless you store them using TRUNC in some bri trigger of something like that.
    Then this might be your problem:
    MHO%xe> with dates1 as( --simulate data
      2  select to_date('201003', 'yyyymm') dt from dual union all
      3  select to_date('201004', 'yyyymm') from dual union all
      4  select to_date('201005', 'yyyymm') from dual union all
      5  select to_date('201006', 'yyyymm') from dual
      6  )
      7  , dates2 as( --simulate data
      8  select to_date('2010/03', 'yyyy/mm') dt from dual union all
      9  select to_date('2010/04', 'yyyy/mm') from dual union all
    10  select to_date('2010/05', 'yyyy/mm') from dual union all
    11  select to_date('2010/06', 'yyyy/mm') from dual
    12  ) -- actual query here
    13  select dt1.dt
    14  ,      dt2.dt
    15  from   dates1 dt1
    16  ,      dates2 dt2
    17  where  dt1.dt = dt2.dt;
    DT                  DT
    01-03-2010 00:00:00 01-03-2010 00:00:00
    01-04-2010 00:00:00 01-04-2010 00:00:00
    01-05-2010 00:00:00 01-05-2010 00:00:00
    01-06-2010 00:00:00 01-06-2010 00:00:00
    save the date in the log table in the format MM/DD/RRRRYou might have lost your day and time component probably.

Maybe you are looking for

  • Display data from diferent tables

    My requirement is to display data from diferent tables supose tables likeVBAK and VBAP.it will allow for all entries concept oops abap?. how to write code for display data from diferent tables . method WDDOINIT. data: node_sflight type  ref to if_wd_

  • Imported Video comes in one frame at a time

    I am working with a Sony DCR-TRV310 NTSC camera connected to my MacBook Pro (OS10.6.7) through a fire wire cable.  I was able to import the video into iMovie 9 but each frame comes in as a separate clip.  When I press the space bar to view the projec

  • Copying table data accross a dblink using dbms_datapump

    Hi Friends, I need to copy a table data accross a dblink into another table of same structure. There is a requirement to use 10g dbms_datapump package to copy the data. The problem is that I can export into a dump file and then import it into the oth

  • Ipod wont charge, appear in itunes, or turn on

    my husband has just gotten an ipod 5.5 gen. We hooked it up to the computer and synced it. It looked like it was doing fine so we left the house. When we got back it was not apparent in the itunes screen and it wont turn on. It had very low battery l

  • Table for bid invitation and purchase org releationship.

    hi,        i want to know is there any table exists in srm having bidinvitation no and purchase organisation releation. regards, nawed.