Skip to Content
avatar image
Former Member

how to get system date

I am not able to get the system date. If i use SY-DATUM, then it gives me server date. Now the time of India and US differs. If i use SY-DATUM, the nit shows server date which is according to Indian Standard Time . Then how do i get the time as per US.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 17, 2008 at 05:39 AM

    Hi Priti,

    Use SY-DATLO, this will give local date. Otherwise use SY-DATUT and get GMT Global date.

    Regards

    Karthik D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2008 at 05:35 AM

    add relevant time to sy-uzeit

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 17, 2008 at 05:37 AM

    Just press F1 help on

    CONVERT TIME STAMP

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2008 at 05:40 AM

    Hello

    GET TIME STAMP

    and then

    CONVERT TIME STAMP

    with interested you timezone.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2008 at 05:55 AM

    use the system field SY-DATLO to get system date

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2008 at 06:09 AM

    Hi,

    The GET TIME statement synchronizes the time on the application server with the time on the database server and writes it to the field SY-UZEIT. SY-DATUM and the system fields for the local timezone (SY-TIMLO, SY-DATLO, and

    SY-ZONLO).

    SY-DATLO : Useru2019s local date.

    SY-TIMLO : Useru2019s local time.

    SY-UZEIT : Current application server time.

    SY-DATUM : Current application server date.

    SY-ZONLO : Useru2019s time zone i.e UTC, EST.

    reference : help.sap.com

    thanx.

    Add comment
    10|10000 characters needed characters exceeded