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

change date format

Former Member
0 Likes
406

hallow

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

change it to 012007 without comma

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
385

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
Read only

Former Member
0 Likes
386

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

Read only

Former Member
0 Likes
385

Hi

Date = '01.2007'.

REPLACE '.' WITH ' ' INTO DATE.

CONDENSE DATE NO-GAPS.

Reward if useful

Regards

ANUPAM