How to Convert a 'Time Stamp' field to Date......?

Hello Gurus:
I am using a Generic Extractor to pull some stats data.  One of the field is a Time Stamp field, which tells me the date and time of Transaction run.  I only need "Date".  I tried mapping the stamp field to Date info-object hoping for a automatic determination of the Date.... (like the Week, Month happens).   Well, I was wrong! 
I only need the Date part.  How can I do this in BI?  is teher a specific SAP info-object for this that could be used..?  If not, what would be the routine.  The Date field that comes in is a SAP format... "u201C20,070,505.0000000u201D meaning the Transaction was run
on 05/05/2007.  How can I get this convertion in BI transaformation??  is there a special Routine...?
Also, we are trying to use "Time Stamp" based DELTA from a generic extraction.  The field used is a System date with time stamp.  Value looks like u201C20100,505,170,113.2918470u201D, u201C20100,505,170,113.4748820u201D  Every record pulled has a different value... probably giving me the time at which the record was created or generated.  Now, with DELTA specifid on this type of field, what will be the 'Current Status" value in Delta queue?  Is it based on the last record created and will that be the highest value?  For next Delta extraction, does it compare the extraction time stamp to this value and bring in those records that are greater than the 'Current Status" value?  I guess with that we can have as many deltas as we want..... right??  is there any particular setting I should be doing or worried/ careful about setting etc....?
Thanks for the response in advance....
Best..... SMaa

Thanks Akshay,
Your suggestion worked right away and was probably the easiest of all.  I tried the Function Module that Pravender suggested,
but it did not return me the date back.... may be because it does not need the Micro Seconds in it....?  Routine as suggested by
Satyam might work too, but did not go there....! 
Thanks to all of you.
Best..... SMaa

Similar Messages

  • How to convert epoch time stamp to timestamp.

    Hi,
    I need a help regarding how to convert the epoch Time stamp, to oracle date and time format.
    for example,
    for epoch time stamp:1204104116656
    the time stamp should be :2008-02-13 12:43:00.351
    Please help me on the same

    SQL> select timestamp '1970-01-01 00:00:00' + numtodsinterval(1204104116656/1000,'second') from dual;
    TIMESTAMP'1970-01-0100:00:00'+NUMTODSINTERVAL(1204104116656/1000,'SECOND')
    27-FEB-08 09.21.56.656000000 AM
    SQL> select (timestamp '1970-01-01 00:00:00' + numtodsinterval(1204104116656/1000,'second')) at time zone tz_offset('EST') from dual;
    (TIMESTAMP'1970-01-0100:00:00'+NUMTODSINTERVAL(1204104116656/1000,'SECOND')
    27-FEB-08 08.21.56.656000000 AM -05:00
    SQL> select (timestamp '1970-01-01 00:00:00' + numtodsinterval(1204104116656/1000,'second')) at time zone tz_offset('PST') from dual;
    (TIMESTAMP'1970-01-0100:00:00'+NUMTODSINTERVAL(1204104116656/1000,'SECOND')
    27-FEB-08 06.21.56.656000000 AM -07:00
    SQL> select (timestamp '1970-01-01 00:00:00' + numtodsinterval(1204104116656/1000,'second')) at time zone tz_offset('Europe/Berlin') from dual;
    (TIMESTAMP'1970-01-0100:00:00'+NUMTODSINTERVAL(1204104116656/1000,'SECOND')
    27-FEB-08 03.21.56.656000000 PM +02:00
    SQL> select (timestamp '1970-01-01 00:00:00' + numtodsinterval(1204104116656/1000,'second')) at time zone tz_offset('Canada/Mountain') from dual;
    (TIMESTAMP'1970-01-0100:00:00'+NUMTODSINTERVAL(1204104116656/1000,'SECOND')
    27-FEB-08 07.21.56.656000000 AM -06:00SY.

  • How to display the time stamp in a data log table

    Hello,
         I want to display data during the data acquisition process. How do I  add the time stamp as one of the column in the 'Result Table' located at bottom left of the example code?
    Thanks,
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    Cycle Analysis.vi ‏229 KB

     I inserted the portion you added to my program and it worked but not exactly the way I want. It added the time and date when I start the data acquision. But I want the time stamp to be shown on every single row. Please see attached image.Thanks.
    Attachments:
    Result.JPG ‏54 KB

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
    The time stamp is 20 positions, character (NOT NULL, CHAR(20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
    The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
    Is this at all possible?
    Thanks in advance for help on this!

    Hi,
    As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
    If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
    A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
    Since you're using Oracle 8 (according to your subject line), you either have to
    (1) ignore the microseconds, or
    (2) use a separate NUMBER column for the microseconds.
    Either way, use TO_DATE to convert the first 14 characters to a DATE:
    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )where txt is your CHAR column.
    To convert the microseconds to a number (between 0 and 999999):
    TO_NUMBER (SUBSTR (txt, 15))

  • How to convert epoch time to datetime in sql*loader Oracle

    Hello,
    I wan't to question how to convert epoch time to datetime in sql*loader Oracle. I try this script for convert epoch time to datetime in sql*loader, but error:
    Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    This is my loader:
    LOAD DATA INFILE 'C:\Documents and Settings\Administrator\My Documents\XL_EXTRACT_211\load.csv'
    into table TEMP_TEST_LANGY append
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    DATADATA CHAR "TO_DATE('01-JAN-1970','DD-MON-YYYY')+:datadata/86400"
    This is my csv file:
    79314313.7066667
    79314336.2933333
    79314214.3466667
    This is my table:
    CREATE TABLE TEMP_TEST_LANGY
    DATADATA DATE
    Thanks
    Edited by: xoops on Sep 21, 2011 8:56 AM
    Edited by: xoops on Sep 21, 2011 8:58 AM

    thanks for your answer, but I asked to use sql loader instead of the external table, which so my question is why can not the epochtime converted to datetime, if there is no way to convert a datetime epochtime using sql loader, so I'm required to use the external table. thank you.
    This is my error log:
    Column Name Position Len Term Encl Datatype
    DATADATA FIRST * , CHARACTER
    SQL string for column : "TO_DATE('1-Jan-1970 00:00:00','dd-MM-YYYY hh24:mi:ss') + (:DATADATA/60/60/24)"
    Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Edited by: xoops on Sep 21, 2011 12:33 PM

  • SQ01 with Time Stamp Fields

    Hi,
    If I have Time Stamp Fields in my Query, is it possible to format these fields into having just the date (both in the selection screen as well as in the output list)?
    Rgds,
    /Fredrik.

    1) create a help-field
    2) use command
    CONVERT TIME STAMP tst TIME ZONE tz INTO DATE d TIME t.
    in infoset - coding
    A.

  • Converting EPOCH time stamp to time stamp in Oracle

    Hi,
    I need a help regarding how to convert the epoch Time stamp, to oracle date and time format.
    for example,
    for epoch time stamp:1204104116656
    the time stamp should be :2008-02-13 12:43:00.351
    Thanks in Advance
    Basil Abraham

    Are you sure you've got the right timestamp? Assuming this is a standard unix epoch time stamp with the epoch date starting at 1970-01-01 UTC the interval between 1970-01-01 UTC and 2008-02-13 is 13922 days, but your epoch timestamp divided by the number of miliseconds in a day 1204104116656/(1000*60*60*24) comes out to 13936.390... days a difference of 14 days 9 hours 21 minutes 56 seconds and 656 miliseconds.
    Anyway to convert you need to convert your epoch date into an interval and add it to the starting epoch date (as a timestamp):
    select to_timestamp_tz('1970-01-01 utc', 'yyyy-mm-dd tzr')+
           numtodsinterval(1204104116656/1000,'second') dstamp
    from dual;Message was edited by:
    Sentinel

  • How do I add time stamp to photo in photoshop?

    How do I add time stamp to photo in photoshop? I have saved photos from a camera phone to the computer. They still have the META data on them (aka the date and time from when the picture was taken). How do I put them on there?

    The following is old but may still be valid with Yosemite (it addresses how to remove the name but indirectly also how to display it): http://osxdaily.com/2012/01/10/remove-user-name-from-menu-bar-os-x/

  • Converting UTC time stamp to local time (CET)

    Is there a smooth way to convert a time stamp from UTC time into the local time (e.g. CET)?
    CONVERT TIME STAMP.... Just converts the timestamp from local time zone to UTC, is there another comand to perform the opposite conversion?
    TIA!
    /Armin

    Hi Armin
    The statement does not only convert from local time zone to UTC you can specifiy any timezone:
    CONVERT TIME STAMP time_stamp TIME ZONE tz
            INTO [DATE dat] [TIME tim]
            [DAYLIGHT SAVING TIME dst].
    The following statement can also be used to convert from date time to timestamp.
    CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]
            INTO TIME STAMP time_stamp TIME ZONE tz.
    Regards
    Faaiez

  • How to find the time stamp for delata

    Hi Analysts,
    I am loading data from R/3 to InfoProvider(Cube or ODS) with delta update.
    I have seen nodata was loaded to InfoProvider. But data was available at DataSource. then new delta is started. i want to load the last delta again.
    How to see the time stamp of delta?
    How to load that delta data?
    Please help me in this need.
    Hari.

    Dear Srihari,
    if your last delta failed then you can request it again by calling the same delta infopackage again, it will ask for repeat delta (in case last delta has failed), go and run it.
    this way you can have your delta figurs back, and do upload via PSA.
    Hope it helps.

  • To determine shift timing based on a time stamp field

    Hi all,
    I have an issue with a determing shift timings.
    I have a  time stamp field QALS-ENTSTEZEIT which has a value like 17:22:29.
    Now based on this I have to determine the shifts.
    There will be 3 shifts.
    shift 1 between 08:00:00 to 16:00:00
    shift 2 between 16:00:00 to 00:00:00
    shift 3 between 00:00:00 to 08:00:00.
    Now the issue is :this statement,
                             QALS-ENTSTEZEIT BETWEEN '00:00:01' AND '08:00:00'.
                             do not triggered.
    Please suggest some solution.
    Thanks and Regards
    Nazmul

    Hi,
    Try the below code, it may solve your problem.
    Data : V_TIME type QALS-ENTSTEZEIT, shift.
    Ranges : R_T1 for QALS-ENTSTEZEIT , R_T2 for QALS-ENTSTEZEIT, R_T3 for QALS-ENTSTEZEIT.
    R_T1-SIGN = 'I'.
    R_T1-option = 'BT'.
    R_T1-LOW = '080000'.
    R_T1-HIGH = '160000'.
    APPEND R_T1.
    R_T2-SIGN = 'I'.
    R_T2-option = 'BT'.
    R_T2-LOW = '160000'.
    R_T2-HIGH = '235959'. " Change like this, its not much difference from 000001 but seems to be working
    APPEND R_T2.
    R_T3-SIGN = 'I'.
    R_T3-option = 'BT'.
    R_T3-LOW = '000001'.
    R_T3-HIGH = '080000'.
    APPEND R_T3.
    V_TIME = '172259'. " u can assign QALS-ENTSTEZEIT directly to v_time
    *CONCATENATE V_TIME+0(2) ':' V_TIME+2(2) ':' V_TIME+4(2) INTO V_TIME. "no need for this
    IF V_TIME IN R_T1.
    SHIFT = '1'.
    ELSEIF V_TIME IN R_T2 .
    SHIFT = '2'.
    ELSEIF V_TIME IN R_T3.
    SHIFT = '3'.
    ENDIF.
    Check and revert back.
    Regards
    Karthik D

  • Time Stamp Field.

    Hi All,
    I am doing Generic extraction with view for sales order history.
    Can any body give me the examples of fields names, which could be used in sales orders, and we can use them as time stam fields in generic delta.
    Regards,
    Madhu

    Hi,
    Delta Generic DataSource time stamp fields
    Delta Generic DataSource
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b68b99-022e-2a10-999d-c4dc9ec24a59
    Create Generic Delta
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Re: Regarding Generic data source !
    Regards
    CSM Reddy

  • Time stamp to sample data

    Hi,
    I would like to attach a time stamp to acquire data. For example, if I acquire 50 samples, I would like to know when each one was captured so that I can work out the time elapsed between them. Any help would be greatly appreciated.
    Thanks in advance for the help.
    Ming

    You get a timestamp whenever you acquire data as dynamic data (i.e. DAQ Assistant) or select waveform data type. The wavefrom data type is a cluster with a y array, a t0, and a dt. Assuming that you are using hardware timed acquisition, the dt is equal to 1/sample rate. If you are not using hardware timed acquisition, why not?

  • Time stamp from dynamic data

    I trying to write dynamic data to a file using Express VI (Write LabView Measurement file). The dynamic data comes straight from a simulated Signal Express VI. The signal part of the dynamic data is written correctly but the time stamp is what appears to be float counting the seconds since the Write LabView Measurement file Express VI was started.
    I have configured the Simulate Signal VI Time stamp to absolute data and time option.
    This should be dead simple but it just do not work!
    Any suggestion to what I might do wrong?
    I do expect that the time stamp would be written as two columns one for date and one for time.
    Thanks,
    Soren T. Jensen

    The timestamp is written in the header of the file. The time and date entered there is the time and date that you are looking for. The timestamp written next to each piece of data is indead a relative value. It is the delta from the timestamp in the header to the time that datum was collected (created). The reason for this is that timestamps are quite large in bytes, especially if you break out the time and date in strings. Just stamping the header and providing the offsets is much more efficient.
    If you choose to not provide a header, I think that the timestamp will be lost entirely. I think that this is probably wrong, but I am uunsure what should be done to correct it.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to make a list item field with DATE data type?

    I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
    "FRM-32082: Invalid value for given item type.
    List WEEKREST
    Item: WEEKREST
    Block: EMPRESTS
    Form: MODULE3
    FRM-30085: Unable to adjust form for output."
    Using forms 6i how to make a list item field with DATE data type which can hold day names?

    Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.

Maybe you are looking for

  • Problems with my library! URGENT!

    Hi guys, So I've been running my library from my External Hard drive and I never have any problems with it. Today I opened my iTunes and tried to play a song and it said it could not be located. I located it and I thought it would automatically locat

  • How to Force the Display to be On? (W520, for Color Calibration Purpose)

    Hi, I am trying to get the color calibration to work on Linux on my W520 and the color detector seems to work with dispcalGUI. However, when I close the lid of the laptop, the LCD always turns off. I verified that it is not caused by either acpid or

  • Using the original MAP price

    Hi, Just wondering how do you pull out the previous moving average price for a goods return? We have scenario in which business want the valuation of the return to pick up the moving average price base on the relevant previous goods issue transaction

  • Read Dynamic Selection contents of a Variant for QE51N

    Hi Folks, Need your help here ! In my report, I wish to read the Variants along with their contents created for transaction QE51N. I tried using function module RS_VARIANT_CONTENTS and its working good, but not to my requirements. The function module

  • Colors Oversaturated in Mountain Lion

    I've just now finally upgraded to ML from Lion, and find that the colors on my display are out of kilter. The icons on my dock, for instance, are way oversaturated. I've searched Apple Discussions and Google and seen a lot of mentions of problems alo