Application Development and Automation 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: 
Read only

Local Date & Time

Former Member
0 Likes
1,927

Hi All,

Is there any possibility to disaplay Local Date & Time in script level.

our current system have time zone setting as German timimgs, but one of our client in china they want to display in all their labels with Local date & Time instead of German timings . They have thier own script but print program is common for all . is there any possiblity to change in script level without modifing the Print program.? pls let me know.....

Thanks & Regards,

sksk.

3 REPLIES 3
Read only

Former Member
0 Likes
985

sy-datum and sy-uzeit are local date and time respectively.

Read only

0 Likes
985

these system fields will help i hope

you can get with sy- <field name>

these are from SYST structure.

DATLO	SYSTDATLO	DATS	8	0	Local Date for Current User
TIMLO	SYSTTIMLO	TIMS	6	0	Local Time of Current User
ZONLO	SYSTZONLO	CHAR	6	0	Time Zone of Current User

Read only

Former Member
0 Likes
985

Hii,

You can find the current users local date/time as follows:

SY-DATLO - Local Date for Current User

SY-TIMLO - Local Time of Current User

SY-ZONLO - Time Zone of Current User

structure contains local time -> LTIME

You may try this FM: DB_LOCAL_TIME

regards,

Archana