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

is there any function module to convert date formats

Former Member
0 Likes
867

i want to conver from any format of date to mmddyyyy

how to do this

i want to conver from any format of date to mmddyyyy

how to do this

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
0 Likes
800

hi,

use fm CONVERT_DATE_TO_INTERNAL

or try:

concatenate p_date4(2) p_date6(2) p_date(4) into o_date.

Andreas

Message was edited by: Andreas Mann

Read only

Former Member
0 Likes
800

CONVERT_DATE_TO_INTERN_FORMAT

Read only

0 Likes
800
CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
  EXPORTING
    DATUM         = DATE
    DTYPE         = DATS
* IMPORTING
*   ERROR         =
*   IDATE         =
*   MESSG         =
*   MSGLN         =

regards

vijay

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
800

Hi,

If you know the format,then you can use concatenate statement.

FOr ex: data d1(8) type c value '29122005'."ddmmyyyy

data d2(8) type c.

concatenate d12(2) d10(2) d1+4(4) into d2.

Kindly reward points by clikcing the star on the left of reply,if it is useful.

Read only

0 Likes
800

concatenate pdate4(2) pdate6(2) pdate(4) into fin_date.

plz reward points if it helps by clicking on star!!

Regards

Gunjan