Date trans convert dd-mmm-yy (10-nov-08) to yyyymmdd

Hi All,
I have seen a few discussion on forums and also tried date trans function
My requirement is date in incoming field  is dd-mmm-yy (10-nov-08) and has to be converted to yyyymmdd
Can ne one pls help me out

Hi Ravindra,
You can achieve this by writing a simple UDF.
But if you don't want to go for an UDF, then there is one more way of doing it :
1)First  using 'Substring' function get the value 'nov' separately.
2)Use 'FixValue' to get the corresponding no of month. Eg: 11 for nov
   In fixValue you can maintain these values of months.
3)Using 'substring', you can get the values of date and year separately.
4)Now these 3 separate values you can concatenate, and get the resultant date format as 'dd-mm-yy'(10-11-08).
5)Now using the 'TransformDate' function, you can get the required format as 'yyyymmdd'.
  But this approach can be used if, incoming month value is alway 3 char ( mmm).
Regards,
Supriya.

Similar Messages

  • How to preserve data when converting a Standard DSO into a Write Optimized

    Hi,
    I'm looking for proven strategies for preserving data when converting a standard DSO into a write optimized DSO. The data has to be dropped before the new DSO is transported into the environment.
    1. The DSO is currently in synch with a cube,
    2. The PSA does not have all the data which is in the DSO.
    3. Data volume is incredibly high for a full reload from ECC, so we'd like to avoid that option.
    Appreciate any help!

    Hi Gregg,
    have you considered just deleting the data? I know that sounds simple, but it might be a valid solution.
    If the DSO is just receiving new data (e.g. FI documents), you can continue to deliver a logically correct delta to the cube.
    Should that not be possible and you really want all data that you currently have in your DSO1 in the write optimized future of it, then how about this:
    - Create a new DSO2 same structure as DSO1
    - Load all data into that
    - Delete all data from your DSO1 and import the transport to make it write optimized
    - Load all data back into you now write optimized DSO1 from DSO2
    The problem you have then, is that all data that you have already loaded into your cube is due to be delivered as a delta from DSO1 again.
    Depending on your transformation / update rules that might or might not be a problem.
    Best,
    Ralf

  • Date format convert error in XML interface based Adobe interactive forms

    Hi experts,
    I am using XML interface based Adobe interactive form in Web Dynpro ABAP. The form just contains some date fields and numeric fields.
    When I test the WD Application, the date fields appear like 0000-00-00 at the first time. And then I set the form input disable, and get the XML from the form, at the same time I get the warning message, 'date format convert error'. By the way, I have set the edit pattern, display pattern and data pattern  of the date field to YYYYMMDD, but there seems no effect.
    Could you tell me how to set the default date format in date field Or clear the 0000-00-00?
    And another question, all of the numeric fields in the form appear like 0.0, how can I set it to empty when the form initialize?
    Best Regards,
    Guo Guo Qing

    Hi Chintan,
    Thank you for your reply.
    I have tried every possible changes on the Date field, locale, pattern. But still no effect. When the PDF come up in the WDA program, the date field is still '0000-00-00', and then I export the XML date of the form, there is also '0000-00-00' in the interface field.
    I can't clear the '0000-00-00' in initializiation event using javascript because if I need to open the form again, if I do this, the value user input could be cleared.
    I also try using Javascrip like this
    if this.rawValue == "0000-00-00"
    { this.rawValue = ""; }
    The code above can't clear the initializiation zeros too.
    Have you used the XML interface based online Adobe Forms? I have used XML PDF forms for output before, that's perfect. But the input forms seems so strange.
    Best Regards,
    Guo Guo Qing

  • Problems with Capture Date when converting from PSE9

    I'm trying to troubleshoot a problem I'm having when converting my PSE9 catalog to LR3.4. Specifically, about 20% of my images (abouit 2,500 out of 12,000) didn't import with capture dates. I can clearly see the correct capture dates in PSE9 Organizer, but when I view the same imported images in LR3.4, there is no date. This occurs with dates that I've modified in PSE9 as well as dates straight out of the camera.
    This is a major problem for me because I'm used to organizing my photos in PSE9 using capture dates. On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year. Sorry, but Jan 01 is not the same as unknown. Is there a way to correctly display unknown portions of a capture date in LR3 similar to the way it's displayed in PSE9?
    Sorry if this has been discussed before.

    How did you convert your catalog?  Did you use File > Upgrade Photoshop Elements Catalog, or did you use File > Import Photos?  You should use the former; the latter has many problems, among which PSE doesn't always correctly write medata (e.g. capture dates) into files. If you used File > Upgrade Photoshop Elements Catalog, post an image here and we can take a look at its metadata to troubleshoot.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year.
    Even though Adobe's XMP metadata standard allows for unknown month, day, or time, most programs including LR don't support it -- PSE is the only program I know of that does (and it has problems).  I use the conveniton of 1/1 12:00:00 to represent unknown values.
    See this FAQ for other issues with converting PSE catalogs to LR:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Converting_to_Lightroom

  • Converting Java.util date to XML date in format YYYY-MMM-dd

    I'm using below code to convert java.util.date to XML date
    public static XMLGregorianCalendar toXMLDate(Date dte) {
       try {
       // this may throw DatatypeConfigurationException
       DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
       GregorianCalendar calendar = new GregorianCalendar();
       // reset all fields
      calendar.clear();
       Calendar parsedCalendar = Calendar.getInstance();
      parsedCalendar.setTime(dte);
      calendar.set( parsedCalendar.get(Calendar.YEAR ),
      parsedCalendar.get(Calendar.MONTH),
      parsedCalendar.get(Calendar.DATE ));
       XMLGregorianCalendar xmlCalendar = datatypeFactory.newXMLGregorianCalendar( calendar );
      xmlCalendar.setTimezone( DatatypeConstants.FIELD_UNDEFINED );
      xmlCalendar.setFractionalSecond( null );
       return xmlCalendar;
    I need to get the date in the format YYYY-MMM-dd, but it returns in a format YYYY-MM-dd. Can anyone tell me how can i change the format? Thanks

    >
    The snippet of ApplicationClient where the assignment took place and the syntax occurred were:
    1. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    2. DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
    3. Date date = new Date();
    4. CustomerDetail customerDetail = new CustomerDetail();
    5. customerDetail.setCollectionDate(dateFormat.format(date)); //got the above syntax error
    6. customerDetail.setCollectionTime(timeFormat.format(date)); //got the above syntax error
    .....I am running JDK 1.6.0_10, Glassfish v2r2, MySQL 5.0, Netbeans 6.1 on Windows XP platform.The format method returns a String not a Date. Why not just store the Date as is without formatting, and format it when you want to retrieve it from the DB and display it?
    m

  • Date display in dd-mmm-yyyy format on opening a .jsp file as .xls

    Hi,
    I am pretty new to Java and JSP, I have a problem,
    There's an application in which the contents of a .jsp are to be displayed in excel format.
    All the data are displayed in correct format except the dates.
    The dates that are in the dd-MMM-yyyy format in the .jsp's are displayed as dd-mmm-yy in the .xls file.
    How to solve this?
    Thanks in Advance!

    Maybe you need to configure that "application"? Or if you actually have access to the source code, then just take a look in it.
    Without any more details about the "application" we can't help you any much further.
    Generally, when you want to convert a Date or Calendar object to a human readable String, the SimpleDateFormat [1] is been used.
    [1] http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html

  • Parsing Date and converting it toString()

    Hi,
    When I parse my date to a specific timezone, why does it not display that same timezone when I convert it to a string? Instead it seems to be using my system's current timezone, and I don't want that.
    This is how I'm doing it...
    SimpleDateFormat formatter = new SimpleDateFormat ("EEE MMM dd HH:mm:ss z yyyy");
    String myStrDate = "Fri Oct 23 08:49:52 PST 2002";
    System.out.println(myStrDate);
    // Parse the string back into a Date.
    ParsePosition pos = new ParsePosition(0);
    Date myDate = formatter.parse(myStrDate, pos);
    System.out.println(myStrDate.toString());output >Fri Oct 23 08:49:52 PST 2002
    output >Wed Oct 23 10:49:52 CST 2002
    I want the output to have the same timezone as what was parsed. Can someone please help me?
    Thanks,
    .kim

    Kim-
    Ok, here's a thought. I used the following code, which has some issues:
    SimpleDateFormat formatter =
        new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");          
    String myStrDate = "Wed Oct 23 08:49:52 PST 2002";
    System.out.println(myStrDate);
    // Parse the string back into a date
    ParsePosition pos = new ParsePosition(0);
    Date myDate = formatter.parse(myStrDate, pos);
    // Using "PST" like this is deprecated
    formatter.setTimeZone(TimeZone.getTimeZone("PST"));
    String formattedDate = formatter.format(myDate);
    System.out.println(formattedDate);And I got the following output:
    $ java KimDate
    Wed Oct 23 08:49:52 PST 2002
    Wed Oct 23 09:49:52 PDT 2002
    Now, I know it changed to pacific daylight - but - I'm sure it's 'cause I used that "PST" as a TimeZone id - if you find the correct TimeZone ID I bet this would work out for you.
    Of course, it's a pain to have to set the TimeZone on the formatter like that, so maybe this won't help you.
    Good luck!
    Lee

  • How to output data when converting labview vi into matlab mex functions

    Hi,
    I am a fairly new user to labview and am currently working on labview
    7.1. I have created a labview vi which can extract data from ni daq
    6070e in real time. The problem is that this code has to be converted
    so that it can be used with matlab.in order to do that i am using math
    interactive tool kit which converts the labview code into mex files
    which can then be used in matlab. Unfortunately i have not been able to
    figure out how to output this data so that it can be processed in
    matlab easily. i cannot afford any loss of information and all the
    output must happen in real time. the o/p must take place after the fft
    has been done. i am attaching the vi for convenience.There are 10
    broken wires ,and this is the place where i want the o/p to be
    generated.
    Also do let me know if this vi can be further improved.
    Regards
    Attachments:
    RT_loop2ver4_working.zip ‏642 KB

    Manuj,
    You seem to have misunderstood the way in which LabVIEW processes data.  The code that you have produced will run in exactly the same way without the need for the case structure.
    The code does not actually run the data from the previous case. It is merely processing data from the previous loop iteration, regardless of the case. If you were to remove the case structure, leaving only one copy of the code intact, and remove the toggle switch you have produced, or used the shift register which, I assure you would have worked, then you will have exactly the same functionality.
    I have attached an example that uses the shift register to toggle cases, but also iterates that the case structure is not needed by using the same feedback node (and code) without a toggle switch or case structure.
    Hope this helps you optimize your code
    Regards
    AdamB
    Applications Engineer
    National Instruments UK
    Applications Engineering Team Leader | National Instruments | UK & Ireland
    Attachments:
    CASE_NO-CASE_Example.vi ‏24 KB

  • Migration Workbench is messing up data in converted from SQL Server image fields.

    I am working on porting a SQL Server 7 database to Oracle 8i (8.1.6 release 2). In the SQL Server database I have several tables that contain image fields that hold binary data (like Word documents, and other files). When I port the database to Oracle, the data in these fields gets garbled (the resultant records contain the correct amount of data (bytes), yet the data is different). Data in image fields that contain text oriented data ports correctly (i.e. if you just saved a long string in the field). Has anyone else posted a similar problem? Is there a workaround here to get the data stored in these image fields to port correctly?

    The thing is DDL of SQL Server and Oracle are quite different, without the help of MW from SQL Developer. You can't convert SQL server version of DDL to Oracle version. Of course you can accomplish the same thing using other tools like ERwin and Visio. Since SQL Developer is free why bother?

  • Conversion of date format from DD-MMM-YY to YYYYMMDD

    Hi all,
    i am getting date from oracle database which is in DD-MMM-YY format.   i want to change it to YYYYMMDD format .is there any func module to achieve this.
    bye

    hi srikanth,
    try this code it is exactly suite u r requiremnt
    DATA:STR(8),S1(2),DD(2),MM(2),YY(4).
    STR=SOURCE_FIELDS-/BIC-DATEFIELD(if bi7.0 )
    STR=TRANS_STRUCTURE-/BIC-DATEFIELD(if BW 3.5 )
    SPLIT STR  AT  u2018-u2018 INTO DD MM YY
    SHIFT DD  RIGHT DELETING TRAILING SPACE.
    SHIFT MM  RIGHT DELETING TRAILING SPACE.
    OVERLAY DD WITH S1.
    OVER LAY MM WITH S1.
    CONCATENATE YY  MM DD INTO STR.
    RESULT=STR.
    regards
    sasidhar

  • 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
    thanks

    shamilsons 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.

  • Invalid data after converting clob to blob

    GOAL: insert adresse or someth. into an msword file out of database
    Hi,
    I'm working with a 9i database and I'm trying to insert data in a clob. First I convert the blob, which is a stored xml- file in my databse, to a clob. after that i'm replacing the data I want to insert and then reconverting to blob. It goes very well, but when the data I insert contains a 'ö' or 'ä' or 'ß' the blob file i get is invalid and can't be read by msword! I opened the file with notepad and instead of 'ö' etc there is a very strange sign like a square. here is my plsql- code:
    loop
    test:=substr(v_clob,posi,len);
    posi:=posi+32767;
    if length(v_clob)-posi<32767 then
    len:=length(v_clob)-posi+1;
    end if;
    --vartest:=utl_raw.cast_to_raw(v_clob);
    DBMS_LOB.WRITE(r_blob, length(test),posi-32767, utl_raw.cast_to_raw(test));
    exit when posi>length(v_clob);
    end loop;
    DBMS_LOB.freetemporary(v_clob);
    return r_blob;
    because of 9i doesn't contain the procedure dbms_lob.converttoblob i user utl_raw.cast_to_raw and split my clob in several parts with a size of 32767 characters
    i also tried with utl_raw.convert with several character sets, but don't know which one to take...
    nls_lang of database server is set to GERMAN_GERMANY.WE8MSWIN1252
    can anyone help me please!
    Message was edited by:
    user472439

    dbms_lob.writeappend expects a real lob locator, which you can only get by selecting from a lob column.
    create table blobtab (b blob);
    insert into blobtab values (empty_blob());
    CREATE OR REPLACE FUNCTION clob_to_blob (clob_in IN CLOB)
    RETURN BLOB
    AS
    v_blob blob;
    v_varchar RAW(32767);
    v_start BINARY_INTEGER := 1;
    v_buffer BINARY_INTEGER := 32767;
    BEGIN
    select b into v_blob from blobtab;
    FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(clob_in) / v_buffer)
    LOOP
    v_varchar := UTL_RAW.CAST_TO_RAW(DBMS_LOB.SUBSTR(clob_in, v_buffer, v_start)) ;
    DBMS_OUTPUT.PUT_LINE(' DATA :' || DBMS_LOB.SUBSTR(clob_in, v_buffer, v_start));
    DBMS_OUTPUT.PUT_LINE(' V_VARCHAR :' || v_VARCHAR);
    DBMS_OUTPUT.PUT_LINE(' V_VARCHAR LENGTH :' || utl_raw.LENGTH(v_VARCHAR));
    DBMS_LOB.WRITEAPPEND(v_blob, utl_raw.LENGTH(v_VARCHAR), v_varchar);
    DBMS_OUTPUT.PUT_LINE('after append');
    v_start := v_start + v_buffer;
    END LOOP;
    RETURN v_blob;
    END clob_to_blob;
    declare
    blobvar blob;
    begin
    blobvar := clob_to_blob(dbms_xmlgen.getXML('select 1 from dual'));
    end;
    /

  • Date Formatting, Converting from String to Timestamp

    I am trying to convert a string date to timestamp.
    I have tried a couple of different ways to arrive at the end result.
    I am basically trying to convert a date in the "dd-MM-yyyy" format to a timestamp.
    If I use the following code, I get a date like this "18-May-2004 12:00:00 AM".
    SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy);
    Date dContractDate = sdf.parse("18-05-2004");
    long dateInMilli = dContractDate.getTime();
    bHelp.bcontractdate = new Timestamp(dateInMilli);
    How can I make this code display the current time not midnight or some defaulted value?
    Thanks.

    I think a clever person would reuse their Date.classObject and call Date.setTime() as opposed to always
    rolling out a new Date()
    Not really a question of cleverness. Your code wins
    nothing. Objects are not magically created and garbage collected in the ether.
    The cost of creating a Date is nothing
    compared to the cost of a format() call. True, but not valid a valid statement pertaining to the issue which is
    "does always rolling dates suffer a performance hit?"
    Plus you lost clarity Maybe you loose track of your code if you don't make new Objects all the time,
    but I have never suffered from this.
    Why do you think Sun provided the setDate() method?
    and thread-safety.I have only had Thread issues when I didn't program them properly.
    Luckilly I always program the correctly ;) (Touch wood)
    The facts as I seem are thus:
    Rolling new dates on a 1.83 GHZ PC incurrs on average
    a 19% penalty. Here is the proof.
    Save this program and save it as DateTest.java
    If you don't want to waste the time here are the results of running it
    through the default 10 iterations.
    Running 10 iterations.
    Reuse of dates is 27% more efficient
    Reuse of dates is 17% more efficient
    Reuse of dates is 18% more efficient
    Reuse of dates is 20% more efficient
    Reuse of dates is 20% more efficient
    Reuse of dates is 17% more efficient
    Reuse of dates is 17% more efficient
    Reuse of dates is 20% more efficient
    Reuse of dates is 20% more efficient
    Reuse of dates is 18% more efficient
    Gaining "nothing " actually = 19% on average
    Low percent diff = 17 High percent diff = 27
    Run it 100 times and it should still be around 19%
    With the hi time being about 47% (Probably the result of garbage collecting)
    //////////////////////////////////// <PROOF> ///////////////////////////////////////
    import java.util.Date;
    public class DateTest
    DateTest()
    public int run()
    int percent = 0;
    int loopCount = 0;
    Date date = null;
    int z=0;
    long start1=0,end1=0,start2=0,end2=0,now=0;
    int time1 = 0,time2 = 0;
       now = System.currentTimeMillis();
       date = new Date(now);
       loopCount = 10000000;
       start1    = System.currentTimeMillis();
       for(z=0;z<loopCount;z++)
          now = System.currentTimeMillis();
          date.setTime(now);
       end1 = System.currentTimeMillis();
       start2    = System.currentTimeMillis();
       for(z=0;z<loopCount;z++)
          now   = System.currentTimeMillis();
          date  = new Date(now); // use 'now' so test loops are =.
       end2 = System.currentTimeMillis();
       time1 = (int)(end1 - start1);
       time2 = (int)(end2 - start2);
       percent = ((time2-time1)*100/time2);
       System.out.println("Reuse of dates is "+percent+"% more efficient");
       return percent;
    public static void main(String args[])
    int z=0;
    int lowP=100,hiP = 0;  // lowpercent/highpercent
    DateTest d = new DateTest();
    int loopCount = 0;
    long totals   = 0;
    int average   = 0;
    int values[];
    int retVal = 0;
       try // Yea olde Lazy person's command line handler :)
          loopCount = Integer.parseInt(args[0]);
       catch(Exception any)
          loopCount = 10;
       if(loopCount == 0)
          loopCount = 10;
       values = new int[loopCount];
       System.out.println("Running "+loopCount+" iterations.");
       for(z=0;z<loopCount;z++)  //
          retVal = d.run();
          if(lowP > retVal)
             lowP = retVal;
          if(hiP < retVal)
             hiP = retVal;
          values[z] = retVal;
       for(z=0;z<loopCount;z++)
          totals += (long)values[z];
       average = (int)(totals/loopCount);
       System.out.println(" Gaining \"nothing \" actually = "+average+"% on average");
       System.out.println("Low percent diff = "+lowP+" High percent diff = "+hiP);
    }////////////////////////////////// </PROOF> /////////////////////////////////////////
    Your "nothing" is in fact on average about a 19% performance hit. per call.
    These inefficiencies build up and java is infested with the,
    Was it not so the java would run much more efficiently than it now does.
    Ask yourself; why did Sun supply the setDate() method???
    (T)

  • B1IF mass data process(convert) issue

    Hi All,
    I have a issue converting a large amount of data that I queried from my SAP database via a B1IF sql call.
    The data must be covert to another format before converting the xml to a string to be dropped on MQ.
    I have 120 other messages that works the same way without any issue.
    The process just stops when I try to convert the data to a string.
    The atoms with data looks like this before passing it to the XML2TXT call.The xml disapeared and changed to text (maybe this is because it is a mass of data ?)
    Please assist...
    Kind Regards,
    Brenden Draper

    Hi All,
    I have a issue converting a large amount of data that I queried from my SAP database via a B1IF sql call.
    The data must be covert to another format before converting the xml to a string to be dropped on MQ.
    I have 120 other messages that works the same way without any issue.
    The process just stops when I try to convert the data to a string.
    The atoms with data looks like this before passing it to the XML2TXT call.The xml disapeared and changed to text (maybe this is because it is a mass of data ?)
    Please assist...
    Kind Regards,
    Brenden Draper

  • Trying to find epoch dates and convert them to dates

    I'm trying to find every epoch time in a string and convert them to a date. I have tried the below with no luck.
    SELECT REGEXP_REPLACE('1315617396271 Impacting: CISCO SAN SWITCH1315617396271 Impacting: CISCO SAN SWITCH'
    ,'([[:digit:]]{10,10})',unixts_to_date('\1'))
    FROM dual
    Result
    Error - ORA-01722: invalid number
    I know the dates are good and the function works fine from the below test.
    select unixts_to_date('1315617396') from dual
    result
    10 September 2011 01:16:36 AM
    Any help with this would be much appreciated!

    Hi,
    I was not able to copy-and-paste your example due to unknown characters (which are displayed as squares on my Ubuntu laptop).
    I modified them replacing those characters by spaces.
    Maybe that won't totally fit your needs, or might behave differently on your system.
    Anyway, I propose the following :Scott@my11g SQL>l
      1  with t as (
      2  select '1315617396  271 Impacting:  CISCO SAN SWITCH  1315617396  271 Impacting:  CISCO SAN SWITCH ' str from dual
      3  union all select '1315417396  123 Impacting:  CISCO SAN SWITCH  1315317396  123 Impacting:  CISCO SAN SWITCH ' from dual
      4  union all select 'I went to France from 1123456789 to 1234567890 and it was great !' from dual
      5  )
      6  ------ end of sample data ------
      7  select
      8       str
      9       ,listagg(strdt) within group (order by n) newstr
    10  from (
    11       select
    12            str
    13            ,n
    14            ,regexp_replace(sstr,'(.*?)\d*$','\1') || (to_date('1970101','yyyymmdd') + regexp_substr(sstr,'\d{10}',1)/3600/24) strdt
    15       from (
    16            select
    17                 str
    18                 ,n
    19                 ,regexp_substr(v.str,'.*?(\d{10}|$)',1,v.n) sstr
    20            from (
    21                 select t.str,
    22                 m.column_value n
    23                 from t
    24                 ,table(cast(multiset(select level
    25                                from dual
    26                                connect by level <= regexp_count(t.str,'.*?\d{10}')+1) as sys.OdciNumberList)) m
    27            ) v
    28       )
    29  )
    30* group by str
    Scott@my11g SQL>/
    STR                                                NEWSTR
    1315417396  123 Impacting:  CISCO SAN SWITCH  1315 06 June      2012 05:43:16 PM  123 Impacting:  CIS
    317396  123 Impacting:  CISCO SAN SWITCH           CO SAN SWITCH  05 June      2012 01:56:36 PM  123
                                                       Impacting:  CISCO SAN SWITCH
    1315617396  271 Impacting:  CISCO SAN SWITCH  1315 09 June      2012 01:16:36 AM  271 Impacting:  CIS
    617396  271 Impacting:  CISCO SAN SWITCH           CO SAN SWITCH  09 June      2012 01:16:36 AM  271
                                                       Impacting:  CISCO SAN SWITCH
    I went to France from 1123456789 to 1234567890 and I went to France from 07 May       2006 11:19:49 P
    it was great !                                    M to 13 November  2009 11:31:30 PM and it was grea
                                                       t !

Maybe you are looking for