Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get system date

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Priti,

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

Regards

Karthik D

6 REPLIES 6

Former Member
0 Kudos

add relevant time to sy-uzeit

former_member188685
Active Contributor
0 Kudos

Just press F1 help on

CONVERT TIME STAMP

Former Member
0 Kudos

Hi Priti,

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

Regards

Karthik D

Former Member
0 Kudos

Hello

GET TIME STAMP

and then

CONVERT TIME STAMP

with interested you timezone.

0 Kudos

use the system field SY-DATLO to get system date

Former Member
0 Kudos

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.