Date format in XML Forms

Hi all,
I already have done my article using XML FORMS. I added into the article the date field that I needed. So, I would like to format the date output in Render List as “dd/mm/yyyy” instead of “mm/dd/yyyy”. It’s possible? Anyone knows how to do it?
Thanks in advanced,
Alcides Flach

Hi,
By adding in the Additional Metadata parameter the  entry "customFormat=dd.MM.yy", you'll force the display of this property to this format. Look at SAP note 816761 for more info about this.
Patricio.

Similar Messages

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

  • Changing date format in XML form!!

    Hi,
    I have created a form by using XML form builder.I have many date fields in the form. I want to change the date format of date field from default MM.DD.YY to DD.MM.YYYY.
    Helpful answer will be appreciated with points.
    Regards,
    Dharam

    Hi Dharam,
    you can change the date format in the KM Layout set as described here:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=240057
    but the XML Forms functionality does not refer to the additional format information set on he property as you can read here:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=105044
    Hope this helps,
    Robert

  • 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

  • Time format in xml forms

    Hello.
    I'm having a problem with the time format in the xml forms generated from one of the pdf forms I have made in live cycle. The time is already set to be HH:MM:SS, but when my users are submitting at e.g. 8:00 the time in the xml file is 8:00:00 and not 08:00:00, which I would like it to be, because of the validating going on in my database.
    Is that possible?
    Best regards
    Mathias

    Try with the below patterns for the Date Time field..
    Display Pattern: time{HH:MM:SS}
    Edit Pattern: time{H:M} //I am assuming the users will not enter the seconds in the input.
    Data Pattern: time{HH:MM:SS}
    Thanks
    Srini

  • Date format in XML sys.dbms_xmlgen

    hello all,
    i have posted this question in "general XML " forum also....so please dont mind
    i am using following query to generate insert SQL statements
    SELECT
    'insert into ' || table_name || ' (' || (select rtrim(extract(xmlagg(xmlelement(e, t.column_value.getrootelement() || ',')),'//text()'),',') from table(xmlsequence(t.column_value.extract('ROW/*'))) t) || ') values (' ||
    (select dbms_xmlgen.convert(rtrim(extract(xmlagg(xmlelement(e, '''' || t.column_value.extract('//text()') || ''',')),'//text()'),','),1) from table(xmlsequence(t.column_value.extract('ROW/*')))t) || ');' ins_stmt
    from user_tables,
    table(xmlsequence(dbms_xmlgen.getxmltype('select * from ' || a_TblName ||' WHERE MODIFIEDON >'||a_date).extract('ROWSET/ROW'))) t
    where table_name in (select table_name from user_tables where table_name =a_TblName);but when i execute the procedure as
    sql> exec   Gen_Insert_Statement('11-jun-2009');
    ORA-19202: Error occurred in XML processing
    ORA-00904: "JUN": invalid identifier
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    ORA-06512: at "MRILDATA17TEST.GEN_INSERT_STATEMENT", line 22
    ORA-06512: at line 2     and if i do this
    SQL> exec Gen_Insert_Statement('11-06-2009');
    begin Gen_Insert_Statement('11-06-2009'); end;
    ORA-01843: not a valid month
    ORA-06512: at line 2is there any format to pass date while using XML packages??? i am also not getting in which this issue is occuring??
    any suggestion will be appreciable
    thanks and regards
    VD
    Edited by: dixit on Aug 13, 2009 6:15 AM

    thanks for not replying

  • Date format in XML conversion

    Hello,
    I am using oracle8i. The date format is not giving the proper date values in XML conversion..
    create table test(dt date);
    insert into test values(sysdate);
    insert into test values(sysdate);
    insert into test values(sysdate);
    TEST.WORLD> select * from test;
    DT
    28-NOV-04
    28-NOV-04
    28-NOV-04
    set autoprint on
    set long 100000
    set linesize 100000
    set longchunksize 100000
    var g_clob clob
    declare
    l_ctx dbms_xmlquery.ctxType;
    l_clob clob;
    begin
    l_ctx := dbms_xmlquery.newContext('select dt from test');
    dbms_lob.createtemporary(:g_clob,true,dbms_lob.session);
    dbms_xmlquery.setdateformat(l_ctx,'yyyy-mm-dd');
    :g_clob := dbms_xmlquery.getXml(l_ctx);
    end;
    Here is the output . It is dispalying the 03 For the month november.
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <DT>2004-03-28</DT>
    </ROW>
    <ROW num="2">
    <DT>2004-03-28</DT>
    </ROW>
    <ROW num="3">
    <DT>2004-03-28</DT>
    </ROW>
    </ROWSET>

    When you call DBMS_XMLQUERY.SETDATEFORMAT, you must supply the mask using the syntax defined by java.text.SimpleDateFormat.
    You need to use "yyyy-MM-dd".
    In your case, "yyyy-mm-dd", the lower case "mm" is the mask for minutes.

  • Date format problem in forms?

    I basically want the following.. in a date text item.
    1st Jan 2008
    if DD is 1 character and
    20th Jan 2008 if DD is 2 characters.
    not
    01st Jan 2008
    20th Jan 2008
    In SQL i can do this with date format 'FMddth Mon, YYYY'
    In forms though this does not work.. any ideas?
    Thanks

    Looks like the pl/sql version used by Forms has a flaw in handling the fm and ddth parts of the date format together.
    If it is a display-only column, you can change its datatype to char, remove the format mask, and instead, change the Column Name property to something like:
    to_char(date_column,'fmddth Mon YYYY')

  • Date format Problem in forms&reports Services 10g

    Hi Dears,
    I Faced a problem during running reports ( i am using forms& Reports Services 10g), when i pass the parameters via parameter form to the report (built in forms10g Rel 2.0) its appearing in arabic like (25-يناير-2010) as my Date Formate is (DD-YYYY-MON) and NLS_LANG parameter is defined as Arabic_Saudi arabia.AR8MSWIN1256 so as a result report is not running due to unknown Date formate, how can i change the Same Date format (DD-YYYY-MON) to appear in english like (25-2010-JAN)
    Thanks

    You could specify the parameter as type VARCHAR2, explicitly cast it (maybe to DD.MM.YYYY) when you pass it from forms and cast it back in your query, like TO_DATE(:P_PARAM, 'DD.MM.YYYY')

  • Date format in smart form

    How can we change the date format in a smart form.

    define a var of type string in global
    1)get the req date use edit mask function to modify it
    2)convert tthe date as u wanted in program lines in smart form
    3)assign the same to the string variable & then u can display the same
    i hope this works
    close the thred if problem is solved

  • 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

  • Change date format in PO form

    Hi,
    Currently, the delivery date printed in PO form is in the format of mm/dd/yyyy.
    If I will change the month format into text, say for example, FEB-07-2011, how can I make this happen?
    Is there any other way to accomodate this other than change the print program/form?
    Thanks!
    Best Regards,
    Armie

    Hi,
    Date format copy from setting which you have done in  t.code: SU3 or SU01 in Date Format in Default tab,If you want you can change it according to your requirement.
    Or as you need check your SMARTFORMS which assigned to your PO message type ( NACE) with which you print PO and see possible conversion as required by you with your ABAPer.
    Regards,
    BIju K

  • How to change date format for xml insert to a view

    We want to accept more than one data format in an XML insert using DBMS_XMLSave.insertXML(insCtx,xmlDoc);
    The two formats are
    6/7/2004 10:47:21 - This is working
    2004-06-08-04:00 - This gives the error
    java.text.ParseException: Unparseable date: "2004-06-08-04:00"'

    Make the column datatype VARCHAR2

  • Regarding rendering data from seperate XML form in Adobe Flex

    Hi All,
    I am practicing Flex, in this practice I had used SWF file generated for perticular flex project in NWCE but one problem is occur i.e. one of the flex project(day3 exercise 10 ) is implementing  drag and drop between the components is there in flex ,I had practiced in flex builder working fine then swf file generated for this and try to use it in my NWCE environment but problem is room rendering( rooms data extracts from separate XML form is placed at assests in workset ) not working plus no items displayed on that component only ,items of remaining components displayed properly.This Rooms.xml form where to place for display rooms data properly.
    How can I solve this problem.
    Thanks,
    surya.

    Thank u,
    You mean we are unable to access data from local files at run time in flex applications,is right? but suppose at the time of integration of flex application with webdynpro are any other how to pass the required information,for example i am extracting rooms data from xml this xml and pass to list in MXMl component.This XML file is placed source folder of flex project at the time of run this application in Flex builder but i want to use this flex application SWF File in Webdynpro for java(means integration flex and wendynpro).how can i pass this rooms data to list .
    Is there any alternative for this please provide me answer asap.
    Best Regards,
    surya.

  • Independently configure date format for XML/JSON serialization

    How do I configure the date format independently for each of my date fields?
    For example, let's say I have a CustomerOrder class with more than 1 java.util.Date fields in it.
    I need to be able to render like this:
    <customerOrder>
    <orderDate>2013-01-04T20:50:42.769Z</orderDate>
    <user>Bob</lastUpdateUser>
    <state>CO</state>
    <estShipDate>2013-01-04</estShipDate>
    </customerOrder>
    So one of the dates may not care about the hh:mm:ss.
    i.e. I cannot format every date the same way.
    Any ideas?
    This is my technology stack:
    - Tomcat 7
    - Jersey 1.16
    - Enunciate 1.26.2
    - Spring 3.1.2
    - Hibernate 4.1.7
    - JPA 2.0.3

    Otis,
    A "java.sql.Date" contains only a date, whereas a "java.sql.Timestamp" contains both date and time. So retrieve the data (from the database) as a "Timestamp" and not as a "Date".
    Perhaps if you'd care to post the relevant part of your code and show what you are getting and what you want to get, I may be able to help you further.
    Here's a small (uncompiled and untested) example:
    Connection conn = // However you get it.
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select sysdate from dual");
    if (rs.next()) {
      Timestamp ts = rs.getTimestamp(1);
    }Good Luck,
    Avi.

Maybe you are looking for

  • Macbook boots up with a question mark

    Hi, My Macbook suddenly began to boot up with a pale greay desktop screen colour and in the centre of the screen there is a folder with a question makr inside it. I can not progress to do anything else with  it..any ideas? Cheers CFV

  • 2.1 performance over slow connection (vpn)

    Hi, using version 2.1 with a "slower" (1M Upload, 10M Download) connection to the database is a pain. Using the sql worksheet you are typing blindly and wait several seconds before the characters materialize on the screen. I did disable completion in

  • Help! My MacBook Pro (Mid 2009) will not load!

    My MacBook Pro will turn on and off. When I turn it on, I hear the chime and the fan, but all I see is the Apple logo with the loading circle. It stays on that screen forever and sometimes a "no symbol" (circle with line through it) will come up. It

  • I give up..... FDS 2.0.1 installer/patch file.

    Arg, i can't get hold of our Corporate Account holder right now, and i need to get a specific patch of FDS. I've called in through the standard technical support line at 1800-642-3623, but they told me that the download was no longer available, and t

  • Signals in Java

    I am running a Java program in Windows NT. I want to do a clean shutdown whenever a signal is received. I have registered the following Signals in the Signal Handler INT,TERM,ABRT. It works well for Cntrl-C, Window Close. When i go to the Task Manage