cancel
Showing results for 
Search instead for 
Did you mean: 

Date format in US format

Former Member
0 Kudos

Hi,

I have included the system date variable &sy-datum& in my custom smartform which gets displayed in the format DD.MM.YYYY.However i need to display the date in the format MM.DD.YYYY.

Can anyone explain me how this can be done?

Accepted Solutions (0)

Answers (2)

Answers (2)

P561888
Active Contributor
0 Kudos

Hi,

try like this..

SET COUNTRY 'US'.

WRITE L_DATE TO L_CHAR_DATE MM/DD/YYYY.

Regards,

Bharani

naimesh_patel
Active Contributor
0 Kudos

Insert a program lines node and write a date in the US format:


* Here L_DATE type D
* L_CHAR_DATE type CHAR10

WRITE L_DATE TO L_CHAR_DATE MM/DD/YYYY.

Now, instead fo the L_DATE print the L_CHAR_DATE in the Smartform.

Regards,

Naimesh Patel