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 conversion

Former Member
0 Likes
640

how can i convert sy-datum in to normal date format

i.e day.month.year

1 ACCEPTED SOLUTION
Read only

former_member188829
Active Contributor
0 Likes
621

Hi,

use the Function module..

CONVERT_DATE_TO_EXTERNAL

5 REPLIES 5
Read only

former_member188829
Active Contributor
0 Likes
622

Hi,

use the Function module..

CONVERT_DATE_TO_EXTERNAL

Read only

Former Member
0 Likes
621

Hi,

use the function module "CONVERSION_EXIT_PDATE_OUTPUT".

this Function module will convert YYYYMMDD into DD.MM.YYYY format

hope, this will solve your problem.

Read only

0 Likes
621

THANK U .

Read only

Former Member
0 Likes
621

use the statement

data: s_date type sy-datum,

o_date type char10.

WRITE s_date to o_date 'DD.MM.YYYY'.

now in o_date the format is as you requested

reward the points if its helpful

Read only

Former Member
0 Likes
621

Hi, try this.

data: datum like sy-datum,

year(4),

month(2),

day(2).

datum = sy-datum.

year = datum+0(4)..

month = datum+4(2).

day = datum+6(2).