How to convert date format in XI? Help!

Hi Experts,
PIP is the input for XI.
The PIP has date as : <DateTimeStamp>20030515T000000.000Z</DateTimeStamp>.
How to convert it into MM/DD/YYYY format in XI? 
Thanks
Gopal

hi,
use two standard functions:
<b>substring </b>(to take first 8 chars from this field)
<b>DateTrans</b> to change 20030515 to MM/DD/YYYY
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
that's all you need to do very simple
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • 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

  • How to convert Date format into day in ssrs reports?

    Hi
    How to convert date format into day?
    10/01/2010 as like Monday like that?

    =weekdayname(datepart("w",Fields!mydate.Value))
    -Vaibhav Chaudhari

  • How to convert date format to MM/DD/YYYY

    Hi,
       How to convert date format to MM/DD/YYYY.
    Thanks,
    Senthil

    hi,
    tri with this function module
    data :l_date(10) type c
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
       DATE_INTERNAL                  = SY-DATUM
    IMPORTING
       DATE_EXTERNAL                  = l_date.
    this function module converts date from 20050601 to external format  which is specified in user profile
    cheers,
    sasi

  • How to convert date format(mm/dd/yy) into dd-mm-yy

    I want to convert date format(mm/dd/yy) into dd-mm-yy
    like 12/23/06 into 23-sep-06

    hey, you can use SimpleDateFormat to format your date. this is sample code, maybe could help you.
    class dateFormat
         public static void main(String[] args)
              Date now = new Date();
              System.out.println("Before format : "+now);
              SimpleDateFormat sdf = new SimpleDateFormat( "dd-MM-yy" );//Change your date format in here.
              String display = sdf.format(now);
              System.out.println("After format : "+display);
    }If you already understand about my sample code, i think it's easy to make your own date format. Just modified few line of my code.

  • How to convert date format to ISO8601 in Oracle BPEL

    Hi,
    I need to convert date format from YYYY/MM/DD 00:00:00 to YYYY-MM-DDThh:mm:ss format in oracle BPEL. Can any of you help me out. Thanks in advance.

    Hi Anuj,
    I have use the below mentioned code to convert the date format.
    <db:P_X_DATE_FROM>
    <xsl:value-of select='concat(substring(../VALUE,1.0,4.0),"-",substring(../VALUE,6.0,2.0),"-",substring(../VALUE,9.0,2.0),"T",substring(../VALUE,12.0,8.0))'/>
    </db:P_X_DATE_FROM>
    Thanks & Regards,
    Jyotirmoy.

  • How to convert date format into sap standard format?

    Hi All,
    In SAPUI5 screen i have one simple form in form i have date field which is format  (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
    I want convert date format in sap format (YYYY/MM/DD).
    One more issue, when i am fetching the data from sap table,but  the date display with time and time zone.
    eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
    I want to display only date.
    Thanks,
    Prashant.

    Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
    I checked in console, but date is display like mm/dd/yy
    In my controller.js file i have written code
    OData.request
               requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata", 
               method: "GET",
               headers:
               "X-Requested-With": "XMLHttpRequest",
               "Content-Type": "application/atom+xml",
               "DataServiceVersion": "2.0",       
               "X-CSRF-Token":"Fetch"
           function (data, response){
            var header_xcsrf_token = response.headers['x-csrf-token'];
                       OData.request
                            requestUri:
                             "http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata", 
                            method: "POST",
                            headers:
                          "X-Requested-With": "XMLHttpRequest",                     
                            "Content-Type": "application/atom+xml",
                            "DataServiceVersion": "2.0",
                            "Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
                            "X-CSRF-Token": header_xcsrf_token
                            data:
                                   Empid:Emp_id,
                                   Empname:Emp_name,
                                   Start_Date:Emp_sdate,
    //                              End_Date:Emp_edate,
                                   Status:Emp_status,
                                   City:Emp_city,
                                   Location:Emp_location,
    and in my CREATE_ENTITY method
    method ES_SODATA_CREATE_ENTITY.
         DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
             ls_userinfo TYPE zsodata.
       DATA ls_temp TYPE sy-datum.
    * Read Request Data
       io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
    * Fill workarea to be inserted
       ls_userinfo-Empid   = ls_request_input_data-Empid.
       ls_userinfo-Empname   = ls_request_input_data-Empname.
       ls_userinfo-Start_Date   = ls_request_input_data-Start_Date.
       ls_userinfo-End_Date   = ls_request_input_data-End_Date.
       ls_userinfo-Status   = ls_request_input_data-Status.
       ls_userinfo-City   = ls_request_input_data-City.
       ls_userinfo-Location   = ls_request_input_data-Location.
    * Insert Data in table ZUSERINFO
       INSERT zsodata FROM ls_userinfo.
       IF sy-subrc = 0.
         er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
       ENDIF.
       endmethod.
    But still i am getting an error
    POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
    I am able to insert all field except date field. How to insert date field in sap table.

  • How to convert date format in VC 7.0 to DD.MM.YYYY

    Hi
      I am on VC 7.0.
      My requirment is to show Current date as a default value for a input field.
      I am using date function now() as default value...and it is displaying the current date
    08.07.2009 as  Jul 08,2009
    But my requirment is to display it as 08.07.2009
    Please update me how to convert the data format to be displayed as DD.MM.YYYY format
    Thanks

    Hi,
    Use DSTR method to change date format. Check the below link for details.
    http://help.sap.com/saphelp_nw70/helpdata/en/49/032e66f4a4105ee10000000a42189d/frameset.htm
    Regards
    Basheer

  • How to convert Date format in Apex?

    Hi All,
    I have created a Date picker item in Apex as "dd-mm-yyyy", Now when they select this date picker it has to convert into "Day,Month DD, YYYY".
    I have trired like this but it is not wroking, can any one help me to get this to be done.
    Under the item we have option as#
    Default value: to_char(to_date(:P1_ENG_DATE,'dd-mm-yyyy'),'Day,Month DD, YYYY')
    Deafult value as -PL/Sql type.
    Thansk,
    Anoo..

    Hi Tauceef,
    I am having proble now, currently i am apex version 3.0 in that i am un able to find the option "Use application date format"
    How i can reolsve this problem in this version.
    I will be very greatful if u can help me out to resolve this problem.
    Note: Team is not willing to upgarde the apex version.
    Thanks,
    Anoo..

  • How to convert date format automatically

    My question is that how to define fix format of date for hole form, suppose i enter the data in date column
    the date should take automatically format how to this for example, type only 01012010 when i press enter after that at once show 01-01-2010. but you remeber for hole form because i dont want to fire trigger for each column.
    I also tried on post-change and post-query but it doesn't work.

    The following best coding for your help, if you follow this coding, you will not also get error in text column.
    Pre-text-item -- DEFINE TRIGGER AT FORM LEVEL
    declare
    dummy varchar2(20);
    begin
      if :system.trigger_item is not null then
         dummy := get_item_property(:system.trigger_item,item_type);
         if dummy = 'TEXT ITEM' then
            dummy := get_item_property(:system.trigger_item,datatype);
         end if;
         if dummy = 'DATE' then
           set_item_property(:system.trigger_item,format_mask,'DDMMYYYY');
         end if;
      end if;
    end;
    post-text-item -- DEFINE TRIGGER AT FORM LEVEL
    declare
    dummy varchar2(20);
    begin
      if :system.trigger_item is not null then
         dummy := get_item_property(:system.trigger_item,item_type);
         if dummy = 'TEXT ITEM' then
            dummy := get_item_property(:system.trigger_item,datatype);
         end if;
         if dummy = 'DATE' then
           set_item_property(:system.trigger_item,format_mask,'DD-MM-YYYY');
         end if;
      end if;
    end;Thank you,

  • How to convert date format?

    HI,
    I want to convert one kind of data format like default to another kind of format like "DD/MM/YY". I remember I should use SimpleDateFormat class , but I fogot how to use it . Thanks
    gary

    public static java.util.Date makeDateShort(String stringDate) {
         java.util.Date d = null;
         try {
              d =
                   java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT).parse(
                        stringDate);
         } catch (Exception e) {
              try {
                   java.text.SimpleDateFormat format =
                        new java.text.SimpleDateFormat("yyyy-MM-dd");
                   d = format.parse(stringDate);
              } catch (Exception e1) {
         return d;
    }

  • How to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : &amp;lt;af:convertDateTime&amp;gt;
    See also : convertDateTime Demo
    -Arun

  • How to convert date format in R3 system

    hi
    i have the problem converting the date formate in bapi
    for that i take value attribute value and map it
    with
    but it shows error

    public void checkDateInPast(java.lang.String fieldName) {
    //@@begin checkDateInPast()
    IWDMessageManager msgMgr =
    wdComponentAPI.getMessageManager();
    Date theDate = (Date)
    wdContext.currentContextElement().getAttributeValue(fieldName);
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(fieldName);
    if (theDate.after(new Date(System.currentTimeMillis()))) {
    String fieldLabel =
    wdContext.getNodeInfo().getAttribute(fieldName)
    .getSimpleType().getFieldLabel();
    msgMgr.reportContextAttributeMessage(
    wdContext.currentContextElement(),
    attributeInfo,
    IMessageSimpleErrors.DATE_IS_IN_FUTURE,
    newObject[] { fieldLabel, theDate },
    true);

  • Question about get web service result in actionscript and convert data format

    Hi, All
    I have question about how to get dataset from web services
    and put it in tree structure. I have 2 questions about this:
    1, How can I get data correctly in actionscript?
    I have no problem to get data by
    <mx:ArrayCollection id="acFolder"
    source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
    />
    And display in datagrid.
    But when I try to use
    public function
    handleFolderContents(event:mx.rpc.events.ResultEvent):void{
    arData=mx.utils.ArrayUtil.toArray(event.result);
    acData=new ArrayCollection(arData);
    input.text=acData.getItemAt(0).id;
    Seems I can’t get data, it always say:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    2, how to convert data format
    I get data from web service and want to convert it to tree
    structure, as mention below:
    I get:
    <Array>
    <id>111</id>
    <Name>Production1</Name>
    </Array>
    <Array>
    <id>222</id>
    <Name>Production2</Name>
    </Array>
    Convert to:
    <mx:XMLList id="treeData">
    <node>
    <node label="Production1" data="111">
    <node label="Production2" data="222"/>
    </node>
    </node>
    </mx:XMLList>
    Please help me.
    Thanks.

    First, don't specify the package path in the argument
    declaration. Instead import the event object:
    import mx.rpc.events.ResultEvent;
    The docs state this emphatically.
    Second, try "lastResult", in place of "result":
    arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
    not positive about this. I maybe recall reading that result was ok
    for the event object, but maybe not.
    Finally, why do you want to convert the xml? You certainly
    could, but it would be a manual process, recursively reading the
    existing xml nodes and building the new structure, but again, why?
    Just use a labelFunction if necessary to display the nodes as
    you wish.
    Tracy

  • How to Convert Date (DD.MM.YYYY) to be just DD

    Hi experts,
    I have no idea how to convert Date format (DDMMYYYY) to be just DD.
    Example:
    I have date: 31.10.2009
    now i just want to show in report as 31.
    I just known if we just want to show month only, we could use the 0CALMONTH2. but how if i need the day only?
    Are there any way, either in query (BEx) or modeling (Routine/Formula in Update Rules or Transfer Rules) which could fulfill the requirement?
    Many thanks..
    Warm Regards,
    Tika

    Hi,
    go through the link below and modify according to your requirement
    Date conversion from YYYYMMDD to DD.MM.YYYY
    Regards,
    Marasa.

Maybe you are looking for