Dd-mm-yyyy to yyyymmdd

hi all,
plz tell me the FM to convert dd-mm-yyyy to yyyymmdd.
regards
puneet

Chk this any one will help you,
CONVERSION_EXIT_PDATE_INPUT                         Conversion Exit for Domain GBDAT: DD/MM/YYYY -> YYYYMMDD
CONVERSION_EXIT_IDATE_INPUT              External date INPUT conversion exit (e.g. 01JAN1994)
CONVERSION_EXIT_SDATE_INPUT              External date (e.g. 01.JAN.1994) INPUT conversion exit
CONVERT_DATE_INPUT                       Conversion of a date from external to internal format
CONVERSION_EXIT_PDATE_OUTPUT             Conversion Exit for Domain GBDAT: YYYYMMDD  -> DD/MM/YYYY
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_OUTPUT         Internal date OUTPUT conversion exit (e.g. YYYYMMDD)
CALCULATE_DATE : Calculates the future date based on the input .
DATE_TO_DAY : Returns the Day for the entered date.
DATE_COMPUTE_DAY : Returns weekday for a date
DATE_GET_WEEK : Returns week for a date
RP_CALC_DATE_IN_INTERVAL : Add days / months to a date
DAY_ATTRIBUTES_GET : Returns attributes for a range of dates specified
MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.
END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.
HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.
MONTH_NAMES_GET : Get the names of the month
WEEK_GET_FIRST_DAY : Get the first day of the week
HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format
SD_CALC_DURATION_FROM_DATETIME : Find the difference between two date/time and report the difference in hours
L_MC_TIME_DIFFERENCE : Find the time difference between two date/time
HR_99S_INTERVAL_BETWEEN_DATES : Difference between two dates in days, weeks, months
LAST_DAY_OF_MONTHS : Returns the last day of the month
DATE_CHECK_PLAUSIBILITY :Check for the invalid date.
DATE_2D_TO_4D_CONVERSION :Year entry: 2-character to 4-character.
DAY_IN_WEEK :Input date and will give the name of the day 1-monday,2-Tuesday....
SD_DATETIME_DIFFERENCE : Give the difference in Days and Time for 2 dates
regards,
Prabhu

Similar Messages

  • Date conversion from mm/dd/yyyy to 'yyyymmdd'

    Hi,
    I want to convert the 'mm/dd/yyyy' to 'YYYYMMDD'.
    l_endlate = '12/17/2006'
    gw_flatfile-zzenddate format is 'YYYYMMDD'
    The following function module has error.  I think the dype is not right.  What should I put there?   Or do you have better suggestion?
        CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
          EXPORTING
            datum = l_enddate
            dtype = 'DATS'
          IMPORTING
            idate = gw_flatfile-zzenddate.
    Thanks,
    Helen

    Hi,
    You can use the following code:
    *-Local variables-
      DATA: lf_length TYPE i,
                ex_date TYPE char10,
                in_date TYPE begda
    *-Local constants--
      DATA:lc_8 TYPE char1 VALUE '8',
           lc_9 TYPE char1 VALUE '9',
           lc_10 TYPE char2 VALUE '10',
           lc_0 TYPE char1 VALUE '0',
           lc_limit TYPE char1 VALUE '/'.
      lf_length = STRLEN( ex_date )."Length of the external date field.
      IF NOT ex_date CA lc_limit.
       MESSAGE 'wrong format' TYPE 'E'.
      ENDIF.
      CASE lf_length.
        WHEN lc_8.
          IF ex_date1(1) EQ lc_limit AND ex_date3(1) EQ lc_limit.
            CONCATENATE ex_date+4(4) lc_0 ex_date(1)
            lc_0 ex_date+2(1) INTO int_date.
          ENDIF.
        WHEN lc_10.
          IF ex_date2(1) EQ lc_limit AND ex_date5(1) EQ lc_limit.
            CONCATENATE ex_date+6(4) ex_date(2)
             ex_date+3(2) INTO int_date.
          ENDIF.
        WHEN lc_9.
          IF ex_date1(1) EQ lc_limit AND ex_date4(1) EQ lc_limit.
            CONCATENATE ex_date+5(4) lc_0 ex_date(1)
             ex_date+2(2) INTO int_date.
          ELSEIF ex_date2(1) EQ lc_limit AND ex_date4(1) EQ lc_limit.
            CONCATENATE ex_date+5(4) ex_date(2) lc_0
            ex_date+3(1) INTO int_date.
          ENDIF .
      ENDCASE.

  • Converting MM/DD/YYYY to YYYYMMDD

    Hi all,
    In 3.5 . In my update routine i am getting start date and end date from a table which is in the format(MM/DD/YYYY)
    now i need to get the sub week from differnt table.
    in this table calday is inthe format YYYYMMDD .
    firstly i need to convert the date MM/DD/YYYY to YYYYMMDD.
    Now the start date should be sub-week start and end date should be sub-week end.
    Any inputs would be helpfull.
    Thanks in advancce.

    Hi Kiran,
    Go through the below link
    [F MFOR CONVERTING DATE INTO THE GIVEN FORMAT |http://wiki.sdn.sap.com/wiki/display/Snippets/FUNCTIONMODULEFORCONVERTINGDATEINTOTHEGIVENFORMAT]
    Regards
    KP

  • How to convert dd.mm.yyyy into yyyymmdd??..

    I am reading input date as dd.mm.yyyy
    I want to convert it into yyyymmdd
    is there any function module???...
    Thanks
    Sri

    hi,
    Use convert_date_input or convert_date_internal.
    the previous is obsolete with respect to some of the systems and the later isn't obsolete.
    Use as per your requirement.,
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
        EXPORTING
          date_external              = input
    *     ACCEPT_INITIAL_DATE        =
        IMPORTING
          date_internal              = output
        EXCEPTIONS
          date_external_is_invalid   = 1
          OTHERS                     = 2
    Thanks
    Sharath

  • 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

  • Convert from MM/DD/YYYY to YYYYMMDD

    Hi,
    I am getting dates like:
    6/13/2005
    10/6/2005
    etc
    I want to convert it to
    20050613
    20051006
    PLease help with the code
    Thanks
    SAPBW

    Hi Soumya,
    Overlay adds "0" at the end of the digit. Thus "1" becomes "10" so I could not use it.
    I solved the issue by using,
    Data: l_month(2) type c,
    l_day(2) type c,
    l_year(4) type c.
    split TRAN_STRUCTURE-/BIC/DATE at '/' into l_month l_day l_year.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         =  l_month
    IMPORTING
       OUTPUT        = l_month    .
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         =  l_day
    IMPORTING
       OUTPUT        = l_day   .
    concatenate l_year l_month l_day into TRAN_STRUCTURE-/BIC/DATE.
    RESULT = TRAN_STRUCTURE-/BIC/DATE.
    Thanks for your help.
    SAPBW

  • How to convert date format dd.mm.yy into yyyymmdd?

    Hello experts,
    how to convert date format dd.mm.yy into yyyymmdd?
    Thanx
    Axel

    Hi
    go through these previous threads on similar question
    https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
    Date Conversion in Flat File
    converting the DATE(yyyymmdd) into MONTH(yyyymm) format
    Date Format Conversion from MM.DD.YYYY to YYYYMMDD
    gives clear idea
    Reagrds
    Kiran
    Message was edited by:
            ravi kiran naalla

  • Valiadtion of date in dd.mm.yyyy format

    i have a selection screen in which i want user to enter date in dd.mm.yyyy format only.how can i validate that.any FM.
    i also want that date to be changed in yyyymmdd format coz i have to update that in a field which has yyyymmdd format.
    so is there any fm for this also ( to change dd.mm.yyyy to yyyymmdd).
    any pointers will help.

    Hi Govind,
    Based on the user defaults in the transaction SU01 the date will be verified based on the date format selected in the user details.
    Declare the selection screen variable as of type Sy-DATUM.
    what ever format you had entered the date in the selection screen the variable will hold the value in the format yyyymmdd.
    no need to do any format for the date.
    hope this might help you.
    regards,
    Phani.

  • Checking NULL value

    Hello to ABAP Gurus
    First of all I am zero in ABAP hence please ingnore my lack of knowledge.
    Question is that I have written an ABAP routine in transfer rule where I am pulling data from R/3 system into my info objects.
    What I would like to do here is that if the date is NULL "Not present at source", I would like to assign the default date to my info object.
    My small piece of code looks like below
    If TRAN_STRUCTURE-birthdt = ' '.
      RESULT = '01/01/9999'.
      else.
      RESULT = TRAN_STRUCTURE-birthdt.
    endif.
    Please let me have your expert advice.
    Many thanks in Advance.
    Regards,
    Bobby

    Hi Gopal
    Use function module <b>CONVERT_DATE_TO_EXTERNAL</b>. This will convert the date to the user specific format. So if your user specific format is mm/dd/yyyy, then this is all you need.
    Check below threads as well...
    Re: Date Conversion Function Modules YYYYMMDD to MM/DD/YYYY
    convert yyyymmdd date format to mm/dd/yyyy
    How to convert date format to MM/DD/YYYY
    hope it will solve ur problem..
    <b>Reward Points if helpful.</b>
    Thanks & Regards
    ilesh 24x7

  • Logic to select Report name based on User's input.

    Hi Guru's
    Good Morning!
    I have a requirement to create a XMLPUBLISHER Report Whihc is Called as ITEM COUNT SUMMARY + ITEM COUNT DETAIL REPORT Following below
    are my ParameterS
    0.REPORT NAME
    1.ORG
    2.ORG COUNTRY
    3.ITEM SELECTION
    4.ORDER TYPE
    5.STATUS
    6.RECEIPT DATE FROM
    7.RECEIPT DATE TO
    8.TRANSIT DAYS
    REPORT NAME: PARAMETER WILL LET THE USER to select the requrired Reports to be run.
    ORG: is the Names of the SHIP FROM ORG
    ORG COUNTRY: is a Dependent Parameter based on the ORG (i.e When a SHIP FROM ORG is Selected the ORG CHOICE Should have the CHoices for the selected ORG and when Nothing Selected from that ORG it should run for every ORG COUNTRY in that SHIP FROM ORG Currently we have two ORG COUNTRY PER SHIP FROM ORG say(USA, CANADA)
    ITEM SELECTION: We need to Run this Report based on Item Selection ( The Logic should handle a total item selection whihc are comma seperated for upto 29
    items)
    ORDER TYPE : Types of Order Again this can be a List of Comma Seperated Values for order Types
    STATUS: STatus should be Comma Seperated (ENTERED,WAVED,NOTWAVED,SHIPPED)
    TRANSIT DAYS: Transit Days
    RECEIPT DATE FROM: This is the Starting DATe range for the REport to be run
    RECEIPT DATE TO: This is the END DATe range for the REport to be run.
    The ITEM COUNT SUMMARY Report should allow the users to run the report 3 ways
    1.ITEM COUNT RUN BY ORDER TYPE ( for all the STATUS)
    2.ITME COUNT RUN BY STATUS ( FOR all the ORDER TYPES)
    3.ITEM COUNT RUN BY TRANSIT DAYS
    And My approach is I have three Queries Created for the above and in the DATA DEFINITION File
    I have them Listed my DATA DEFININTION ( Sorry as my Query's GO More than 70+ LINES for Each Query I thought I will just paste the Order How i have arranged my queries in the Tempalte)
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <dataTemplate name="TPC_ITEM_COUNT_SUMMARY" description = "TPC_ITEM_COUNT_SUMMARY" version="1.0">
    <properties>
         <property name="xml_tag_case" value="upper"/>
    </properties>
    <!-- parameters for the Report -->
         <parameters>
         <parameter name="report_name" dataType="varchar2"/>
         <parameter name="item_selection"          dataType="varchar2"/>
         <parameter name="order_type"               dataType="varchar2"/>
         <parameter name="pstatus"               dataType="varchar2"/>
         <parameter name="org_name"               dataType="varchar2"/>
         <parameter name="org_choice"               dataType="number"/>
         <parameter name="first_receipt_date"     dataType="date"/>
         <parameter name="last_receipt_date"     dataType="date"/>
         <parameter name="from_date"               dataType="date"/>
         <parameter name="to_date"                    dataType="date"/>
         <parameter name="transit_days"          dataType="number"/>
         </parameters>
    <dataQuery>
    <sqlStatement name= "HDR">
    <![CDATA[
    SELECT UPPER('The ABC Corporation, Ltd.')     AS "COMPANY"
                   ,'Item Count Summary - '||INITCAP(:report_selection)||' for Company '||:org_name AS "REPORT"
                   ,'Order Types - '||UPPER(:order_type) AS "ORDER_TYPE"
                   , SYSDATE AS "RUN_DATE"
         ,'Receipt Date'||' '||TO_CHAR(NVL(TO_DATE(:first_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD')                     ||' '||'thru'||' '||TO_CHAR(NVL(TO_DATE(:last_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD') AS "RANGE"
    FROM DUAL;
    ]]>               
    </sqlStatement>
    <sqlStatement name= "BY_STATUS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by STATUS
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_ORDERTYPE">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by ORDERTYPE
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_TRANSITDAYS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by TRANSITDAYS
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_HDR" source="HDR">
              <element name="COMPANY" value="COMPANY" />
              <element name="REPORT" value="REPORT" />
              <element name="ORDER_TYPE" value="ORDER_TYPE" />
              <element name="RANGE" value="RANGE" />
    </group>
    <group name="G_BY_STATUS" source="BY_STATUS">                
              <element name="RCPT_DT" value="RCPT_DT"/>
    <element name="ITEM"     value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="ENTERED"     value="ENTERED" />
    <element name="WAVED"     value="WAVED" />
    <element name="NOTWAVED"     value="NOTWAVED" />
    <element name="SHIPPED"     value="SHIPPED"/>
    </group>
              <group name="G_BY_ORDERTYPE" source="BY_ORDERTYPE">                                         
    <element name="ITEM"          value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="RCPT_DT"     value="RCPT_DT"/>
              <element name="ORDER_TYPE"     value="ORDER_TYPE" />
    <element name="QUANTITY" value="QUANTITY" />
              </group>
    </dataStructure>
    </dataTemplate>
    Now My Problem is How Do i Get a Logic to Let the Report Name Selection To be REferenced in the Data Definition file..
    I would like to request you to Please help me out in arriving at a Solution for Implementing the Logic
    When the USer selects ITEM COUNT SUMMARY BY ORDER TYPE I want "BY_ORDERTYPE" to be Executed and so on..
    Is there a Way That I can Write in my Data definition file as
    DECODE(:REPORT_NAME ,'ITEM COUNT SUMMARY BY ORDERTYPE', Run query for BY_ORDERTYPE,
    ,'ITEM COUNT SUMMARY BY STATUS', Run query for BY_STATUS,
    ,'ITEM COUNT SUMMARY BY TRANSIT DAYS', Run query for BY_TRANSITDAYS,run query for DETAIL REPORT);
    Also My Item Description Contains Special Characters like Registered Symbol, Copyright Symbol How would I force my XML Parser to Still consider them as TEXT's
    May I Directly Specify <?xdofx:DECODE :REPORT_NAME = 'ITEM COUNT SUMMARY BY ORDERTYPE' THEN BY_ORDERTYPE ?> in the DATA DEFINITION file , I think this is only allowed in RTF please Help,
    Thanks
    vasanthanand

    Thanks for the Reply sir,
    When you say Write the Code, you are referring to the Package is that correct,unfortunately I am not implementing this via PL/SQL Package.
    you mentioned that I can Implement the Logic in the Data definition file( which is a XML file), how and Where I have print use that IF construct (or) Can you Please Print the Code snippet in the Model XML template that i have pasted in my Post.
    May i know what is this
    ln_req_id := fnd_request.submit_request -- for XML1 For...
    Sorry about my ignorance...

  • Unable to activate DSO Request

    Hi All,
    I have created a DSO based on 2LIS_02_HDR and ITM. I had enhanced HDR Dscrc with some 3 text fields and then i created 3 custom info objects for these text fields. I had selected Master with only Text check box, because i just want to show only text for this characteristics and hence forth i build the DSO and loaded it.
    When i load the requests are green, and when its activated, the requests turn red. and the errors i get are:
    Error when assigning SID: Action VAL_SID_CONVERT InfoObject 0DOC_DATE
    Value '21102008 ' of characteristic 0DATE is not plausible
    Process 000001 returned with errors
    Error when assigning SID: Action VAL_SID_CONVERT InfoObject 0ENTRY_DATE
    Process 000018 returned with errors
    Activation of M records from DataStore object ZRS_DS01 terminated
    I tried the steps, like activation in parallel, increased the process number, and then i run RSRV test for the objects too, but i still get this error.
    Can any please help asap
    Thanks

    Hiii,
    Check this SAP NOTE
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313538343938%7d
    Also these threads may help you
    Error while activating ODS
    Re: Date Format Conversion from MM.DD.YYYY to YYYYMMDD
    Update to Infocube fails

  • File naming: sequencing by date

    In the Filename Template Editor and Rename Photos (F2) function, I'd like to be able to sequence my file names by date, with the sequence beginning with 1 for each day, and incrementing regardless how many imports I do.
    For example, the first image for January 2, 2008 might be called "08-01-02_001". On that day I may perform three or four imports, and the sequence continues to increment from 001 to however many images I import on that day. The following day the sequence automatically resets to 1.
    If images are imported that were recorded on an earlier date, this function would have to increment from the highest number of the date the image was recorded (because this is how Lightroom's date function works). For example, if on December 28, 2007 I shot 243 images and today I import another image that was shot on that day, the file name would be 07-12-28_244.
    (I currently sequence by month, manually specifying the start number for each import sequence, but I sometimes forget to change the sequence starting number.)
    Thank you for all you've done. I can't imagine working without Lightroom.

    I would like to see exactly the same enhancement. Perhaps for some file naming schemes it would be helpful to parameterize that function, e.g., "Resent sequence number [to xxx] whenever [date|month|year|camera ...] changes].
    As part of that, I would like very much to have more options/control for the file organization. In particular, I would like to see yyyy/yyyymm/yyyymmdd (e.g., 2008/2008-01/2008-01-15 with the "-" being optional). Right now, the closest you can come to that is yyyy/mm/dd, which leaves too much opportunity for file/folder name confusion.
    dds

  • Errors when loading flat file data

    We just test to load a very simple flat file data with only two lines and the two lines of data in preview of InfoSource is correct.  But when run InfoPackage to load data, the monitor of the InfoPackage shows the following errors (see in between two dashed lines below):
    Error getting SID for ODS object ZDM_SUBS
    Activation of data records from ODS object ZDM_SUBS terminated
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Error when assigning SID (details in long text)
    Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
    Value 'Dealer' (hex. '004400650061006C00650072') of characteristic ZCHANNEL contains invalid characters
    Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
    Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
    Value '/19812' of characteristic 0DATE is not a number with 000008 spaces
    Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
    In the flat file (excel sheet saved as a CSV file), for each row of the data, there are two fields which are start_date and end_date and the date format is MM/DD/YYYY and in the Transfer Rule, we transfer the date format from MM/DD/YYYY to YYYYMMDD which is required by DATS InfoObject type in BW.  If you need the excel sheet of data in order to answer our questions about the above errors, you can give us your e-mail address and we can send the simple two rows of data excel sheet file to you.
    Thanks!

    Hi Kevin,
    1.You can use lowercase letters in the values for your characteristics provided you have checked the lowercase checkbox in the general tab page of Create characteristic screen.But when you do so no masterdata tables,text tables, or another level of attributes underneath are allowed.
                            OR
    Use only upper case letters in your characteristic unchecking the above mentioned box.
    2.The date format in the CSV file should be yyyymmdd.It should have 8 characters . I guess there is something strange in your "calendardays" since I could not find 8 characters irrespective of the order.Do not forget to use zeroes.
    Hope this works.
    Reward if it is helpful.
    Regards,
    Balaji

  • Display key and text in dropdown box & suppress leading zeros in material #

    Hi Everyone,
    I have some questions on how to ....  Can anyone help me?  Here they are:
    How to show material # and description (key and text) both in dropdown box list? 
    How to suppress leading zeros in material #, i.e. 0000000012345678 only show 12345678 ?
    How to show a date with format mm/dd/yyyy not yyyymmdd?
    Thanks alot, Jin
    Edited by: Jin Freda on Mar 25, 2008 4:47 PM

    Hi,
    What type control you are useing for date .
    If you are useing Input field of date type or Date picker control you should get this option in the control properties.
    Can you tell me what are  tabs are appaering in the conrtol properties.
    2.When you you are using the formula Round(@material) ,Are you typing it or draging Field from right side in to  the formula .If you did not drag it you will get Message:Formula has errors.
    One more probelm is there if the Data type of field where you using formula is not Number type.
    Check all above and get back to me.
    3.You are not able to give 6 points for all because its a resrticed one you execeded giving6 points option now you can give only 10 points.
    Regards,
    GOVINDU

  • Add a date to decimal number

    hello
    pls tell me how to add a date to decimal number as
    4 years and 3 months for example ?
    EX.
    ===
    1/1/2001
    +
    4 years and 3 months
    Regards,
    Abdetu...

    If you want a specific result, then post your desired result...we don't know your desired format mask.
    In case it's yyyymmdd:
    SQL> select to_date('1/1/2001', 'dd/mm/yyyy') dt
      2  ,      add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51) dt2
      3  ,      to_number(to_char(add_months(to_date('1/1/2001', 'dd/mm/yyyy'), 51), 'yyyymmdd')) num
      4  from   dual;
    DT                  DT2                        NUM
    01-01-2001 00:00:00 01-04-2005 00:00:00   20050401
    1 row selected.

Maybe you are looking for

  • How to format this string 7414;#Butler, Heather at the same time handling the data type

    I need to insert a nvarchar type column with data like 7414;#Butler, Heather   into a int type column, but only with the number before the before the character ; in the mentioned string. In the above case only 7414 needs to be inserted into the in ty

  • Connecting to 802.11a AP using WPA security - no go

    I have an AP that is set to 802.11a (5GHz) using WPA security and is set to hide its SSID. My iMac is connecting to this AP without any problems whatever frequency i set on AP, hide/show SSID. The problem is - Macbook does not show this AP in AP list

  • ITunes Doesn't Work On Windows 7

    I just installed windows 7 released version and reinstalled iTunes and now it wont start. I installed iTunes on WIn 7 Rc 7100 Build and it worked fine, yet this version (version 9) wont run any ideas?

  • After Fixing Update Images lost to unsupported format

    Like everyone, I had Aperture go buggard after update.  Don't even get me started on that mishap.  Several library fixes later to no avail, deleted Aperture and downloaded from App Store.  One more library fix and Apeture opens once again.  However,

  • SELECT ROWID using ABAP without Native SQL ?

    Hi All, is that possible to query Oracle ROWID from ABAP without using Native SQL ? Please advise. Thank You and Best Regards FL