Strange date format from XML

Hi There!
We have an XML that we read into an XMLtype - and at a time we want to display it in a normal date type....
Its formatted as this: '2007-02-20T09:30:47.0Z' (Zero 0) - I guess it means no timezone in some ISO 86* standard
select TO_date('2007-02-20T09:30:47.0Z','YYYY-MM-DD"T"HH24:MI:SS.??????') from dual;
I have trie to find a format for reading it ... do you have an idea?
regards
Mette

Sorry, forgot to say that some of the dates in the XML field is in this format
'2007-02-20T09:30:47+100 ...... (yyyy-mm-dd"T"hh:mi:ssstzhtzm)
/Mette

Similar Messages

  • Date format in xml file

    Hi,
    I am relatively new to XML and JSP.I am on a project where i have to transfer data to and from an Oracle 8i database to XML using JSP.everything worked fine except for the follwing:
    the date format in xml is always 'yyyy-mm-dd HH:MM:SS'.
    the datatype is date in oracle and string in jsp.when i try to upload the data in XML to oracle it gives me date format not recognised error.I ve tried using trunc and to_char in the query which fetches records into a recordset in JSP but to no avail.i keep getting the same format.
    Can someone please help with with having the date format as 'dd-mon-yyyy'.
    Thanks a heap for the help
    regards,
    Vinayak

    Hi,
    I ve tried out the solutions suggested by you and tried using java.sql.Timestamp
    as follow:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="oracle.sql.*" %>
    String dateString = rset.getString("installation_dt");
    java.sql.Timestamp date = new java.sql.Timestamp.valueOf(dateString);
    But tomcat throws up the following error
    :104:
    cannot resolve symbol
    symbol : class valueOf
    location: class java.sql.Timestamp
    java.sql.Timestamp date = new java.sql.Timestamp.valueOf(dateString);
    Hope you can help me.
    Thanks a heap
    Regards,
    Vinayak

  • How convert date/time from xml in xdp(Designer)?

    Hi, i want to convert date/time format from xml in Designer, date/time value in xml is NOT in common format YYYY-MM-DD (if is in a common format i can do this with pattern)
    I have a "DateTime" Field in Xdp can get from Xml date and time:
    In XML <DateTime>DD-MM-YYYY</DateTime> i want to convert in XDP in DateTime Field in "DD-April-YYYY"
    Can i do this?

    You can do this way..
    Bind the date field to your XML tag.
    Set the display pattern for the date field.
    In the initialize event of the date field place the following code.
    Set JavaScript as language.
    var dtStr = this.rawValue;
    var pos1=dtStr.indexOf("-");
    var pos2=dtStr.indexOf("-",pos1+1);
    var strMonth=dtStr.substring(0,pos1);
    var strDay=dtStr.substring(pos1+1,pos2);
    var strYear=dtStr.substring(pos2+1);
    //Assign the formatted value to the Date field.
    this.rawValue = strYear + "-" + strMonth + "-" + strDay;
    Thanks
    Srini

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • Convert Date format from YYYYMMDD to MM/DD/YYYY --issue with Mapping

    Hi All ,
    I have IDOC(DESADV.DELVRY03-> file ) scenario which i am working on . While debugging noticed that the field :
    E1EDT13\NATNZ -Data Transformation(from yyyymmdd to mm/dd/yyyy)-Target .This works
    But say if IDOC doesn't pass any value (For Good's issue) I get Error during debugging : RuntimeException in Message-Mapping transformation: Unparseable date: ""
    I did check thsi blog : Convertinf Date format from YYYY-MM-DD to MMDDYYYY  but this is  about the Data Transformtaion.
    I tried using constants , create if , -these function doesn't work /not applicle in this case
    Could you please provide  inputs as to how to handle two condition :
    1. With date -- then transform
    2.Else , pass nothing

    Hi Varalakshmi,
    Plese try to use UDF for date conversion and include logic which would check the Space value from the source structure.
    so if there is space return as such
    else.
    perform the conversion logic.
      Convertinf Date format from YYYY-MM-DD to MMDDYYYY
    (The conversion logic has been provided by micheal in the thread you have provided in the query)
    Thanks,
    Ram.

  • How to change data format from  MM/DD/YYYY to DD/MM/YYYY

    HI,
    How can we change data format from MM/DD/YYYY to DD/MM/YYYY in Prompt and Report Level in obiee 11g.
    Please help me ont this.
    Thanks

    Hi,
    In Prompt:
    Try using EVALUATE function.
    Eg: Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'DD-MON-YYYY')
    Report level:
    Try this in the column formula-
    Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'MM/DD/YYYY')
    (or)
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Dim- Date".Start Date, 'MON-YY')
    http://108obiee.blogspot.in/2009/03/how-to-change-date-format-mask-in-date.html
    http://obiee-bip.blogspot.in/2011/08/customizing-obiee-calendar-display.html
    Some other methods.
    Metdhod 1:
    'Save System-Wide Column Formats' Option
    Check this.
    http://siebel-essentials.blogspot.com/2010/10/11-obiee-11g-tips-9-system-wide.html?m=1
    Thanks
    satya

  • Date format from DD/MM/YY to YYYYMMDD

    Hi Guys,
    Date foramt DD/MM/YY(23/09/08) is coming from the flatfiles  
    (text files). I want to convert it to YYYYMMDD format.
    Is it possible to convert date format from DD/MM/YY to
    YYYYMMDD?
      I'm in BI 7.0 environment.When I load date like DD/MM/YY
      (23/09/08) till PSA.In PSA it is showing 08.0/.06/9.
      Please suggest me the right way.It is very impartant for us.
      Thanks
      Prasad

    Hi Guys,
    I understand that this leads to degrade the loading
    Performance.But I don't have the alternative.
    When I use the RSDAT in data source conversion routine it is
    throughing the below error.
    "Error 'Date   .30.0806 contains invalid characters...' at conversion exit CONVERSION_EXIT_RSDAT_INPUT (field CALDAY record 1, value 6/30/08)"
    Can any body suggest me the other way or any other date
    converion routine from 23/09/08 to YYYYMMDD without slash?
    Thanks
    Prasad

  • 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

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • Function module to convert date format from yyyymmdd to mmddyyyy format

    function module to convert date format from yyyymmdd to mmddyyyy format

    Hi Rajitha,
    Do like this
    Data: Var1 type sy-datum,
             var2(8) type c.
    var1 = sy-datum.
    Concatanate var1+4(2) var1+6(2) var1+0(4) into var2.
    write var2.
    Reward Points if this helps,
    Satish

  • Convertinf Date format from YYYY-MM-DD to MMDDYYYY

    Hi Experts,
              I want to convert  date format from yyyy-MM-dd  to MMDDYYYY ( i am using this format in the file strucure),
             i tryed using date tranfer funcion source as yyyy-MM-dd and target as yyyyMMdd this is working fine.
    i tryed using date tranfer funcion source as yyyy-MM-dd and target as MMddyyyy this is giving error.
    Please help me out,
    Thanks,
    Dhanush

    Hi,
    From the error it looks like the date value is coming as blank in the source. please give the date in the same format as you have provided in datetrans function and test it again. It will work.
    It might be possible that there are some other date fields in your source where you are not passing any value and using datefunction. please look carefully at all the source structure and data.
    thanks
    amit
    reward point if suggestion works

  • Change the date format from mm/dd to dd/mm

    Is there any way to change the date format? Currently, my today screen, calendar app, etc is set to display dates as mm/dd. I'd like to change it to the UK format (dd/mm) but I have not been able to find a single method that works. I've tried themes as some have recommended but once I install them, it's still showing mm/dd.
    I'm not unfamiliar with upgrading the OS and "slimming" it down, so even a method that requires me to remove US resource files will be okay.
    Frankly I'm disappointed RIM doesn't provide users with a "Regional Settings" type option like in Windows to change the date format.
    Any advice would be most appriciated.

    Yes you can change Date format from mm/dd to dd/mm its done automatically by " Display language " selected :
    Go to Menu : Setup - choose  - Language and Input Methods - look for " Display Language" there is a  small window with down arrow , click the down arrow and ,  change from " English"  to " English (UK)  "for DD / MM ,date format , or change to       " English (US) "  for MM / DD date format.
    Hope this help .

  • Converting date format from in mapping

    hi xi friends.
    in my scenario i just want to convert date format from 12022007 which is file to 12.02.2007 which is in target bapi.
    waiting for u.
    bye.
    regards.
    seeta ram.

    Hi,
    if I understood you correctly you want to transform from ddMMyyyy (your format in the external file) to yyyyMMdd (format of ABAP datatype DATS):
    Then all you need to do is to use the standard function TransformDate (as already described above).
    Enter in the field "Format of source Date": ddMMyyyy
    Enter in the field "Target Format": yyyyMMdd
    That's it.
    Regards,
    Helmut

  • Converting date format from 14/07/08 to 14-jul-08

    hi all ,
    i want to convert date format from 14/07/08 to 14-jul-08 . is there any function module for this ?.
    kindly reply.
    regards,
    siya

    Hi Siva,
    Check the code below.
    For getting date format in  the form like 10.Dec.2008*
          WHEN '01'.
            CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
              EXPORTING
                input  = date2
              IMPORTING
                output = date_format.
            IF sy-subrc EQ 0.
              date_format1 = date_format.
            ENDIF.
    For getting date in the format like 10.December.2008*
          WHEN '02'.
            CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
              EXPORTING
                input  = date2
              IMPORTING
                output = date_format.
            IF sy-subrc EQ 0.
    Get Month Long text
              SELECT SINGLE ltx
                     FROM t247                 INTO ws_month
                     WHERE ktx EQ date_format+3(3)
                     AND spras EQ 'E'.
              IF sy-subrc EQ 0.
                CONCATENATE date_format0(2) ws_month date_format7(4) INTO date_format1 SEPARATED BY space.
              ENDIF.
            ENDIF.
    Hope this helps,
    Manish

  • Date format  from Company code

    Hi Experts,
    I want to pick the date formate from company code and print it in invoice.can any tell me where i can find the date formate in the company code and what is the T-code for that.
    Thanks in Advance..

    actually, the date format is maintained to the country only not to the company code. So if u want to change the date format, u can change that in the country where ur company code exists
    The Tr. code is OY01
    Reward if useful.

Maybe you are looking for

  • Call for Adobe to flush it's lame tech support:

    I think I speak for many people when I say that Adobe's outsourced "tech" "support" is niether tech nor support. Come on Adobe, step up to the plate and give your customers a little more respect by offering them the kind of support that would be expe

  • Microsoft apps for Nokia 500

    when the Microsoft apps will be made available for Nokia 500? Solved! Go to Solution.

  • Problem with TOC pages and books

    I'm using RH 8 and generate Webhelp. I created a project and had to change some TOC pages and create TOC books instead. I deleted the pages and added books, with the same name. In RH it looks fine but when I generate the TOC displays the page instead

  • RPE-01008 & RPE-01009

    Pls what do these messages mean? RPE-01008: Recovery of this request is in progress. RPE-01009: Completion of this task could not be completed due to an earlier system failure. I got them from some mappings executed via a process flow. But all the ma

  • VPN: racoon crashes on ISO5

    My VPN connection has stopped working after the upgrade to IOS5. The phone only states "an unexpected error has occurred". Watching the console in ICU reveals: configd[14] <Notice>: IPSec connecting to server XX.XXX.XXX.XXX configd[14] <Notice>: IPSe