Application Development 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: 

change date format

Former Member
0 Kudos
51

hallow

i get from user date in format like 01.2007 how i can

change it to 012007 without comma

Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos
30

Hi,

DATA: v_date1(4) TYPE c,

v_date2(2) TYPE c.

SPLIT date AT '.' INTO v_date1 v_date2.

CONCATENATE v_date1 v_date2 INTO v_date3.

Regards,

Raghavendra

2 REPLIES 2

Former Member
0 Kudos
31

Hi,

DATA: v_date1(4) TYPE c,

v_date2(2) TYPE c.

SPLIT date AT '.' INTO v_date1 v_date2.

CONCATENATE v_date1 v_date2 INTO v_date3.

Regards,

Raghavendra

Former Member
0 Kudos
30

Hi

Date = '01.2007'.

REPLACE '.' WITH ' ' INTO DATE.

CONDENSE DATE NO-GAPS.

Reward if useful

Regards

ANUPAM