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: 

how to change the date format?

Former Member
0 Kudos
100

Hello,

I have small problem please help..

i have a date in the file as 20070321 and i have convert this in to MM/DD/YYYY format before updating in to the system.

please help me how to convert this.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

Hi,

data: v_date(8) type c,

v_date1 type string.

v_date = 20070321

concatenate v_date4(2) '/' v_date6(2) '/' sy-datum+0(4) into v_date1.

Regards,

Sruthi

3 REPLIES 3

Former Member
0 Kudos
83

Hi,

data: v_date(8) type c,

v_date1 type string.

v_date = 20070321

concatenate v_date4(2) '/' v_date6(2) '/' sy-datum+0(4) into v_date1.

Regards,

Sruthi

0 Kudos
82

Thanks Sruthi...

its working..i giving full points

Former Member
0 Kudos
82

hi Venki,

Use this logic:-

DATA: v_date TYPE string,( declare 2 variables as string)

v_date1 TYPE string.

v_date = 20070321.

CONCATENATE v_date4(2) '/' v_date6(2) '/' v_date+0(4) INTO v_date1.

WRITE: v_date.

WRITE: v_date1.

Regards

Avi