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 format date

Former Member
0 Likes
426

Hello,

I want to change the format date from 15 december 2006 to 15122006.

How can you do this ?

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
389

hi,

pls chk this table

T247

using this table u can solve this.

Rgds

Anver

3 REPLIES 3
Read only

anversha_s
Active Contributor
0 Likes
390

hi,

pls chk this table

T247

using this table u can solve this.

Rgds

Anver

Read only

Former Member
0 Likes
389

Hi

What you need to do is to take the extract the name of the month

and then use the Table <b>T247</b>

Also check out the FM <b>CONVERSION_EXIT_IDATE_INPUT</b>

You could do a workaround with this also..

Read only

amit_khare
Active Contributor
0 Likes
389

Hi,

you may use this code.

Data: v_month(10) type c,

v_day(2) type c,

v_year(4) type c,

v_final(10) type c.

v_month = v_date+3(8).

v_day = v_date+0(2).

v_year = v_date+11(4).

case v_month.

when' January' or 'JANUARY' or 'january'.

v_mth = 1.

when' FEbruary' or ...

...

.

.

.

.

.

endcase.

concatenate v_date v_month v_year into v_final.

P.S. change the lengths as per your requirements.

Regards,

Amit

Reward all helpful answers.