How to convert yyyymm -mmyyyy format

Hi All,
How do I convert 0Fiscper format from  yyyymm to mmyyyy in transformation rules
Thanks
Nau

Hello,
Create routine:
Fiscper is usually in yyyymmm format...
CONCATENATE SOURCE_FIELDS-FISCPER5(2) SOURCE_FIELDS-FISCPER0(4) INTO RESULT.
Beware that calmonth is stored in yyyymm format.
BR
Ondrej
Edited by: Ondrej Vach on Mar 8, 2011 2:45 PM

Similar Messages

  • How to convert a file format thru java

    Hello friends
    I would like to know how to convert a file format i.e. from x to y ie using java meaning x file comes it will be converted by an exe to y format.
    how can this be achieved in java
    heko

    Open file x with a FileReader or BufferedReader or maybe another class. Search Java API for this.
    Read file x.
    Converts contents as you want.
    Write file y by a FileWriter or BufferedWriter.
    Regards,
    Hartmut

  • How to convert any date format?

    Hi,
    In the BPEL process I am getting the input in 'DD-MON-YYYY' format, I want to convert it to 'DD-MM-YYYY' format.
    The function xp20:formatDateTime('string', 'image') expecting the string to be in 'YYYY-MM-DD' format. and the 'image' can be set to any format.
    So i am able to convert to any format if I have the input string in 'YYYY-MM-DD' format, if I get in different format then how do I change them to required format?
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Looks like you are sending the date in Oracle format. If the date is created by a DB adapter the date should be formated in the correct format for BPEL to format (YYYY-MM-DDTHH:MI:SS). To make sure this happensyour xml needs to be the date data type and the value sent maust be a date not a string, if it is a string use the to_date to make it a date field.
    You are correct once it is in the YYYY-MM-DD format you can change to any format.
    cheers
    James

  • How to convert Time stamp format in CR

    Dear all Expert,
    I have a question. I have a field in my CR which is date time. It show 24.03.2011 03:30:00 in the tables. But when i drop this field in my CR, it become 20,100,906,080,000.00. How to convert it to 24.03.2011 03:30:00 in CR?
    Thank You.

    Hi Alex,
    If cdatetime won't work, try the following by creating a formula . Note : replace your time with database date field i.e. date_4.
    WhilePrintingRecords;
    Stringvar date4:=totext('24.03.2011 03:30:00');
    Numbervar yr;
    Numbervar mon;
    Numbervar dt;
    numbervar hh;
    numbervar mm;
    numbervar ss;
    yr:=tonumber(mid(date4,7,4));
    mon:=tonumber(mid(date4,4,2));
    dt:=tonumber(left(date4,2));
    hh:=tonumber(mid(date4,12,2));
    mm:=tonumber(mid(date4,15,2));
    ss:=tonumber(mid(date4,18,2));
    cdatetime(yr,mon,dt,hh,mm,ss);
    Thanks,
    Sastry

  • How to convert any date format to default US format using javascript???

    Hi,
    I was trying to convert a date format to default US date format. The date format will vary according to different regions (It can be dd/MM/yyyy or MM/dd/yyyy or yyyy/dd/MM or any). I need to convert it in to MM/dd/yyyy always (US Format). Please give some
    solutions for the same.
    Warm Regards,
    Tony Joy

    hi
    it is not trivial task in common case. We faced with similar issue when tried to localize date times in display templates in Sharepoint 2013 depending on site's locale, which can be done only via javascript. In order to do it you need to add date time locale
    information from server side to client side, e.g. by defining global variable. See the following article for details:
    Localize datetimes in display templates in Content by search web parts in Sharepoint 2013. I extended OTB global object _spPageContextInfo with new property (as far as I remember this object is also available in Sharepoint 2010):
    <script type="text/javascript">
    jQuery(function() {
    if (typeof (_spPageContextInfo) != "undefined" &&
    _spPageContextInfo != null) {
    <%
    var ci = new CultureInfo(1033);
    var cultureSerialized = new JavaScriptSerializer().Serialize(
    new
    name = ci.Name,
    dateTimeFormat = ci.DateTimeFormat,
    numberFormat = ci.NumberFormat
    %>
    _spPageContextInfo.currentCultureSerialized = <%= cultureSerialized %>;
    </script>
    Having different date time formats for your locale, you may use
    Date.localeFormat function from MS Ajax for formatting the date in specific format. If in your case format is predefined you may hardcode it without adding DateTime formats from server side.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to convert "any" date format to internal format

    Hi,
    I want to convert any date format  to internal format. Is there any function module ?
    The date formats could be:
    DD.MM.YYYY
    MM/DD/YYYY
    MM-DD-YYYY
    YYYY.MM.DD
    YYYY/MM/DD
    YYYY-MM-DD
    Thank you,
    Surya

    Hi,
    Check this sample program..It will convert sap supported external format to the internal format..
    PARAMETERS: v_char(10).
    DATA: v_date TYPE sydatum.
    DATA: v_period TYPE usr01-datfm.
    Get the format.
    DD.MM.YYYY
    IF v_char+2(1) = '.'.
    CONCATENATE v_char6(4) v_char3(2) v_char(2) INTO v_date.
    ENDIF.
    MM/DD/YYYY
    IF v_char+2(1) = '/'.
    CONCATENATE v_char6(4) v_char(2) v_char3(2) INTO v_date.
    ENDIF.
    MM-DD-YYYY
    IF v_char+2(1) = '-'.
    CONCATENATE v_char6(4) v_char(2) v_char3(2) INTO v_date.
    ENDIF.
    YYYY.MM.DD
    IF v_char+4(1) = '.'.
    CONCATENATE v_char(4) v_char5(2) v_char8(2)  INTO v_date.
    ENDIF.
    YYYY/MM/DD
    IF v_char+4(1) = '/'.
    CONCATENATE v_char(4) v_char5(2) v_char8(2)  INTO v_date.
    ENDIF.
    YYYY-MM-DD
    IF v_char+4(1) = '-'.
    CONCATENATE v_char(4) v_char5(2) v_char8(2)  INTO v_date.
    ENDIF.
    WRITE: / v_date.
    Thanks,
    Naren

  • How To Convert Incomming Date Format  to Our Own Format

    Hi All,
    My Sceario is File XI-File
    My Incoming File is Having the Date With Some DD.MM.YYYY
    But I Want to Convert that Date Format to YYYY MM DD
    So What i have to Do For this
    Regards
    Vamsi

    Hi u can create USD define function
    sample code
    String DB;
    DB=DOB.substring(8,10)"/"DOB.substring(5,7)"/"DOB.substring(1,4);
    return DB;
    or else u can use DateTrans from ur standard function.
    right click -> properties -> give the date format
    regards
    yugapreetha
    Message was edited by:
            Yugapreetha T

  • DateTime is stored as an int. How to convert to datetime format??

    According to the database, StartTime is stored as int: 471895438
    When Viewed in the software it comes out like this: 9/29/2010
    10:05:26 AM
    Any ideas on how to convert this using sql?
    -Tim

    I tried to play with some "reverse engineer" to get the convert value but I dont see the logic. since I dont find a pure date that fit the convert but maybe this will help:
    declare @I INT = 471895438
    declare @DT datetime = '20100929 10:05:26'
    select
    @DT
    ,DATEADD(MS, @I*(-1), @DT)
    ,DATEADD(SECOND, @I*(-1), @DT)
    --,DATEADD(MINUTE, @I*(-1), @DT) -- out of range
    (No column name) (No column name) (No column name)
    2010-09-29 10:05:26.000 2010-09-23 23:00:30.563 1995-10-16 16:01:28.000
    by those result I guess that it is in MINUTE or SECOND
    and according to those result i will need to guess that one of those convert may work for the OP:
    SELECT DATEADD(MILLISECOND, @I, '2010-09-23 23:00:30.563')
    SELECT DATEADD(SECOND, @I, '1995-10-16 16:01:28.000')
    * I tried to use datetime2 as well and check the result for microsecond and nanosecond but the solution was not better and look like 2010-09-29 10:05:25.5281046, 2010-09-29 09:57:34.1045620
    ** This is really strange if someone use a value like 2010-09-23 23:00:30.563 as a base time, and even the base value 1995-10-16 16:01:28.000 then it look strange! but maybe this is the time that the developer born or some other specific time that fits his
    needs :-)
    ** I used my birthday date (but never not a min time), several times in application that I developed as a base time :-)
    [Personal Site] [Blog] [Facebook]

  • How to convert the date format 'm/d/yyyy hh:mi:ss AM' to 'MM/DD/YYYY HH:M'

    How can i convert a the date format 'm/d/yyyy hh:mi:ss AM' to 'MM/DD/YYYY HH:MI:SS AM' in Oracle
    I have a query
    select UPPER(t.val_10) "TYPE", count(val_3) "Number of Transfers"
    from table1 t
    where t.is_active = 1
    and t.val_4 = 'INBOUND'
    and to_date(to_date(val_5,'MM/DD/YYYY HH:MI:SS AM'), 'DD/MM/YY') between to_date(to_date('01/08/2008 00:00:00','DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YY') and add_months(to_date(to_date('01/08/2008 00:00:00','DD/MM/YYYY HH24:MI:SS'), 'DD/MM/YY'),1)
    group by UPPER(t.val_10)
    order by UPPER(t.val_10)
    I get the error [ORA-01861: literal does not match format string which i think is because
    val_5 has the values in the following format:
    8/29/2008 6:31:10 PM
    Does anyone have an answer?
    Thanks in advance
    Edited by: user2360027 on 26-Mar-2009 03:50                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    first off, you've got to_date(to_date(...)) - NEVER do this - you're forcing an implicit to_char which can cause all sorts of problems!
    What is the data type of your column val_5? If it's DATE then your query is simply:
    select UPPER(t.val_10) "TYPE",
           count(val_3) "Number of Transfers"
    from   table1 t
    where  t.is_active = 1
    and    t.val_4 = 'INBOUND'
    and    val_5 between to_date('01/08/2008','DD/MM/YYYY') and add_months(to_date('01/08/2008','DD/MM/YYYY') ,1)
    group by UPPER(t.val_10)
    order by UPPER(t.val_10)If it's a varchar2 (why, oh why, oh why, ...?!), then your query should be:
    select UPPER(t.val_10) "TYPE",
           count(val_3) "Number of Transfers"
    from   table1 t
    where  t.is_active = 1
    and    t.val_4 = 'INBOUND'
    and    to_date(val_5, 'mm/dd/yyyy hh:mi:ss AM') between to_date('01/08/2008','DD/MM/YYYY') and add_months(to_date('01/08/2008','DD/MM/YYYY') ,1)
    group by UPPER(t.val_10)
    order by UPPER(t.val_10)Remember that dates in DATE format are stored in an internal Oracle format - in order for you to tell Oracle that your string is a date, you need to use to_date. When you want to retrieve a date, you need to use to_char to put it into the format you want to see it in.
    Remember also that your nls_date_format defines the default format that you'll see a date, which is what is used in the implicit conversion that oracle does when you select a date:
    SQL> alter session set nls_date_format='dd/mm/yyyy hh24:mi:ss';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    26/03/2009 11:01:53
    1 row selected.
    SQL> alter session set nls_date_format='mm/dd/yy hh12:mi:ss AM';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    03/26/09 11:02:24 AM
    1 row selected.It doesn't make sense to convert something that's already in a DATE format into a DATE format - in order to do that, oracle has to first change the date into a string, and it does that by using the nls_date_format parameter setting - if you're working with dates-in-strings that are in a different format, then all sorts of problems arise, as you have found out!

  • How to convert to MP3 format?

    I am using iTunes, 7.1.0.59.
    I go to Edit, Preferences, Advanced Tab, and set iTunes Music folder location to :\Documens & Settings \All Users\Shared Documents\Shared Music\. The folder conatins 574MB, 19 Folders, 164 files. All type MPEG-4 Audio File. How can I convert these files to MP3 format?
    I understand that I can bring the files into iTunes Music Library by clicking on File, Add Folder To Library, however they come in as m4a. Ater bring them in I can select a song, click on Advanced, Convert Selection to MP3 and create a duplicate listing for a single song. However, when I do this I do not see any new file on my hard disk. If I used this method I would repeat the command 167 times and end up with each song entered twice in iTunes Music Library. This is not what I want to accomplish. I want to permanetly change the file format on the hard disk from m4a to mp3.How can this be done?
    KC
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  
    iPod 5th gen   Windows XP Pro  

    The easiest, fastest, simplest, cheapest, most efficient way to do this is using dBpowerAMP.
    http://www.dbpoweramp.com
    Direct link: http://www.dbpoweramp.com/bin/dMC-r12.exe

  • How to convert date object format to new?

    Hi,
    I have data object and I want to convert it to this format.
    DD MMM YYYY
    eg: 23 MAR 2003
    I am looking for exact line of code please.
    Thanks,
    Kavans.

    You should check out the Javadoc for java.text.DateFormat and java.text.SimpleDateFormat.
    As for the exact line of code then this would be close:
    Date date = ...; // wherever your date comes from
    DateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy");
    String dateAsString = dateFormat.format(date);Remember to check out those Javadocs, though, 'cos they'll tell you the various formatting options available.
    Hope this helps.

  • How to convert to 3gp format

    Hello,
    I have movies and video clips (mpg, divx format) on my computer that are ~1GB in size. Is there a way of transferring them to my iphone?
    Thanks!

    iPhone does not support 3gp(thank goodness-it's horrible).
    It supports mpeg 4 video(including H.264) of a certain spec(spec found on apple.com under iphone-tech specs).
    Easiest way to convert them is to use a transcoder and just select the preset for iPhone.
    I suggest mpeg streamclip : http://www.squared5.com/
    It is available for OS X and windows, it is free-no trial period, no watermarking, no limited feature set. Just free.

  • How to convert date value(format) in Calendar(input controls)

    Hi everyone
    I am using webi 4.0
    My problem is when i select calendar date(input Controls) i am able to display time stamp along with date in input Controls(MM/dd/yyyy 12:00:00 AM)
    i want to change (MM/dd/yyyy 12:00:00 AM) to (yyyy-MM-dd ), when i select calendar date(input Controls)
    where is the calendar date(input Controls)' format setting??
    i dont want to show the time stamp in calendar date(input Controls) as my users dislike to see that timestamp .
    Thanks & regards
    'Before'
    'After'  ( i want to change 'Before' to 'After')

    Hi Park,
    Create a new variable on the Calendar Date object and edit it using FormatDate function and use that object for input control.
    =FormatDate([Date];"yyyy-MM-dd")
    Regards,
    Javed

  • How to convert DV 720x480 format to H264 Widescreen to be viewed on AppleTV

    I plan to purchase AppleTV to sync and play home videos.
    My home videos are 3:2 aspect ratio.
    I would like for the video to show 16:9 by not just stretching but croping and streatching so I do not lose too much top and bottom image and the stretching distortion does not show too much either.
    What would be the recommended settings in QTPro.
    There is no control over the crop function.
    Should I convert to 853 x 480? This would only stretch...
    Help

    There are some Windows apps that claim to convert img to iso but I've not used them. My suggestion is to change the extension to .iso and see whether they accept it.
    Russ

  • 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

Maybe you are looking for