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 convert date format to MM/DD/YYYY

Former Member
0 Kudos

Hi,

How to convert date format to MM/DD/YYYY.

Thanks,

Senthil

7 REPLIES 7

Former Member
0 Kudos

WRITE: sy-datum MM/DD/YYYY

.

0 Kudos

Hi Venkat,

I want to assign MM/DD/YYYY foramt to another variable. So is there is any function is available otherwise how to convert apart from using write statement.

Thanks,

Senthil

0 Kudos

Senthil ,

You can also try this

Date = YYYYMMDD

Concatenate date4(2) ‘ /’ date6(2) ‘/’ date(4) into Date2.

Cheers

Raghava

0 Kudos

Hi,

you should need to use '+' sign in the concatenate date else it throws an error.

Former Member
0 Kudos

data : l_date(10) type c .

concatenate sy-datum6(2) '/' sy-datum4(2) '/' sy-datum(4) into l_date.

write : l_date.

Former Member
0 Kudos

hi,

tri with this function module

data :l_date(10) type c

CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'

EXPORTING

DATE_INTERNAL = SY-DATUM

IMPORTING

DATE_EXTERNAL = l_date.

this function module converts date from 20050601 to external format which is specified in user profile

cheers,

sasi

0 Kudos

it is displaying current system date here.