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

date conversion

Former Member
0 Likes
788

I have a field which is having date in '12.12.2006'

i want to convert this into 20061212

whats the function module for this...How to get this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

use the fm: CONVERT_DATE_TO_INTERNAL

Regards,

Ravi

8 REPLIES 8
Read only

Former Member
0 Likes
760

use the fm: CONVERT_DATE_TO_INTERNAL

Regards,

Ravi

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
759

Hi,

Use f.M CONVERT_DATE_TO_INTERNAL

cheers,

Simha.

Read only

Former Member
0 Likes
759

Hello,

Do like this:


  CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
                     EXPORTING DATUM =  C_DATUV
                               DTYPE = 'DATS'

                     IMPORTING IDATE =  C_DATUV
                               ERROR =  ERROR_FLAG
                               MESSG =  MESSAGE
                               MSGLN =  MESSAGE_LENGTH.

Vasanth

Read only

Former Member
0 Likes
759
V_date(8) type c..
vdate = '12.12.2006'.

CONCATENATE vdate+0(4) vdate+4(2) vdate+6(2) INTO v_date.
Read only

Former Member
0 Likes
759

hi,

    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external = t_bkpf-budat
         IMPORTING
              date_internal = wa_bkpf-budat.

Regards,

Santosh

Read only

Former Member
0 Likes
759

Hi,

use CONVERT_DATE_TO_INTERNAL

data: v_date(8) type c.

call function 'CONVERT_DATE_TO_INTERNAL'

exporting

date_external = '12.12.2006'

importing

date_internal = v_date.

write:/ v_date.

Regards,

Sruthi

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
759

Hi

You can use the FM:

use the fm: CONVERT_DATE_TO_INTERNAL

for this requirement.

Regards,

kumar

Read only

Former Member
0 Likes
759

Hi,

You can use this std function module to convert to system date.

'CONVERT_DATE_TO_INTERNAL'

Regards,

Ponraj.s.