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
1,137

Hi Guys,

I have Sy-datum "20080721" i need to convert this date to "07212008" with out any separator.

Could you please any one slove this issue.

Thanks,

Gourisankar,

6 REPLIES 6
Read only

Former Member
0 Likes
1,108

Try EDIT MASK

Read only

0 Likes
1,108

Could you please provide some sample EDIT MASK coding, i don't have any idea how to use that.

Read only

former_member70391
Contributor
0 Likes
1,108

Hi,

HAve u tried this either CONVERSION_EXIT_PDATE_INPUT

I give 16.05.2008 and get 20080516 as output.

If not you can use the offsets

Date+4(4)

date+2(2)

date+0(2)

Hope it helps.

Thanks & Regards,

Nagaraj Kalbavi

Read only

Former Member
0 Likes
1,108

DATA: DATE TYPE STRING.

CONCATENATE  SY-DATUM+6(2) SY-DATUM+4(2) SY-DATUM+0(4)
INTO DATE.

Greetings,

Blag.

Read only

Former Member
0 Likes
1,108

data : date1 like sy-datum,

date(8).

date1 = sy-datum.

concatenate date14(2) date16(2) date1+0(4) into date.

write : date.

Read only

Former Member
0 Likes
1,108

Hi Gouri,

Try the following:

data:

w_date type sy-datum,

w_date1 type sy-datum.

day = w_date+6(2).

month = w_date+4(2).

year = w_date(4).

concatenate day month year into w_date1.

Hope this helps you.

Regards,

Chandra Sekhar