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

convert date format

Former Member
0 Likes
621

Hi Experts,

Please let me know if there a FM to convert the date format.

My requirement is to convert '<b>20070711'</b> to <b>'07112007'.</b>

Thanks for your help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

There is no function module to do it. All you need to do is

DATA: v_int_date LIKE sy-datum,

v_ext_date(8).

v_int_date = sy-datum.

WRITE v_int_date TO v_ext_date.

WRITE v_ext_date.

3 REPLIES 3
Read only

Former Member
0 Likes
587

There is no function module to do it. All you need to do is

DATA: v_int_date LIKE sy-datum,

v_ext_date(8).

v_int_date = sy-datum.

WRITE v_int_date TO v_ext_date.

WRITE v_ext_date.

Read only

Former Member
0 Likes
586

You can use Below FM :

CONVERT_DATE_TO_INTERNAL

This FM will convert date as internal format,i mean depends on user profile.

Thanks

Seshu

Read only

0 Likes
586

Thanks all