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

Date and time

Former Member
0 Likes
576

i have a variable in which i am fecthing the current date using ' SY-DATUM'. The date fetched is in 'DDMMYYYY' format, bt i want the date in YYYYMMDD format.

Similarly i am fetchin time using field 'SY-UZEIT' which is in 12 hrs format. i want it as a 24 hrs format. how do i go about this. Plzz help me on this....

Thanks.

Regards,

Frank.

i have a variable in which i am fecthing the current date using ' SY-DATUM'. The date fetched is in 'DDMMYYYY' format, bt i want the date in YYYYMMDD format.

Similarly i am fetchin time using field 'SY-UZEIT' which is in 12 hrs format. i want it as a 24 hrs format. how do i go about this. Plzz help me on this....

Thanks.

Regards,

Frank.

4 REPLIES 4
Read only

kiran_k8
Active Contributor
0 Likes
551

Frank

You can change it in User Profiles but a recommended way is using Edit mask.

K.Kiran.

Read only

Former Member
0 Likes
551

Hi

check the fun module

ABI_TIMESTAMP_CONVERT_FROM

or you can offset the Field into YEAR,DATE and MOnth separately and concatenate them

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
551

HI,

use edit mask to display date in your own format,

there are some function modules Convet__dateformat

thanks,

Ravi

Read only

Former Member
0 Likes
551

Hi Frank,

U can use write statement for this :

Write date into date1 yyyymmdd.

Same u can write for time also.

If u want more information press f1 on write statement