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

Former Member
0 Likes
463

data dat type d.

It will accept the date in the format yyyymmdd but i want to give date in the format

ddmmyy. can anyone help me out?

3 REPLIES 3
Read only

Former Member
0 Likes
446

Hi,

Convert the date in your program...

Ex..


DATA: V_INPUT TYPE D.
DATA: V_OUTPUT(6).

V_INPUT = SY-DATUM.

CONCATENATE V_INPUT+6(2) V_INPUT+4(2) V_INPUT+2(2) INTO V_OUTPUT.

WRITE: / V_OUTPUT.

Thanks,

Naren

Read only

Former Member
0 Likes
446

hi,

chk this.

date = d.

take variables V1, V2, V3.

V1 = date+0(4).

V2 = date+4(2)

V3 = date+6(2)

Concatenate V3 V2 V1 into date.

Now, date will have DD.MM.YYYY

Thanks

Aneesh.