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 display

rnb86
Participant
0 Likes
589

Hi friends,

When ever i try to display date, the output is displayed in the format of yyyy/mm/dd.

what is the technique to get the date in the dd/mm/yyyy format from the write statement.

i even set the settings under menu system --> user profile --> own data to dd/mm/yyyy, but still cant get the result in dd/mm/yyyy.

4 REPLIES 4
Read only

Former Member
0 Likes
560

you have to do like this:

write sy-datum edit mask 'DD/MM/YYYY'. " TRY ALSO EDIT_MASK OR EDIT-MASK I'M NOT SURE..

regards,

ravi

Read only

Former Member
0 Likes
560

try the following, it will work.

data: d like sy-datum.

d = sy-datum.

write:/ d using edit mask '__/__/____'.

Read only

Former Member
0 Likes
560

after changing the user profile in SU01 u have to log off the user & come again.

Log off now relogin & use write statement.

data : d1 type d.

d1 = sy-datum.

write d1.

Now u r output will be wat u set in user profile

Read only

rnb86
Participant
0 Likes
560

Hi friends,

thanx for your help. My query has been answered by you. thanx. i tried logging off and relogged and it worked.

And to the rest of replys, thank you also.