Skip to Content
author's profile photo Former Member
Former Member

Convert date to timestamp- Very urgent

Hi friends,

I have a very urgent requirement to convert date to timestamp.

Please help me out ASAP.

Thanks & regards,

Srilakshmi B

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 10:53 AM

    Hi,

    DATA: 
    tstamp type timestamp, 
    d TYPE D VALUE '19971224', 
    
    t TYPE T VALUE '235500'. 
    
    SET COUNTRY 'US'. 
    
    CONVERT DATE d TIME t INTO 
    TIME STAMP tstamp TIME ZONE 'UTC+12'. 
    
    " tstamp : 19971224115500 
    " (12/24/1997 11:55:00) 
    
    CONVERT TIME STAMP tstamp TIME ZONE 'UTC+12' INTO 
    DATE d TIME t. 
    

    Also look at the blog..

    /people/himanshu.gupta/blog/2006/11/14/abap4-date-time-and-timestamps

    Regards,

    Omkaram.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 10:59 AM

    Hi,

    Try FM FRE_CONVERT_DATE_2_TIMESTAMP or ADDR_CONVERT_DATE_TO_TIMESTAMP

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 12:32 PM

    &----


    & Form convert_date_to_timestamp&----


    *form convert_date_to_timestamp using par_date par_time par_time_zone changing par_timestamp. clear par_timestamp. CONVERT DATE par_date TIME par_time INTO TIME STAMP par_timestamp TIME ZONE par_time_zone.endform.

    " convert_date_to_timestamp

    award points if found helpful

    with regards

    sravani yendru

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.