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: 

date format

Former Member
0 Kudos

Hi all,

I want to convert the sy-datum(20081029) format in to userspecific format(10/29/2008) or country specific format,

Any function module is avialable for this.

thanks & regards,

Rakesh

4 REPLIES 4

Former Member
0 Kudos

You have to use set date mask search SCN you can find solution

Former Member
0 Kudos

In what context are you talking ?

Do you want to do it list display or in an ALV ?

rather than calling a FN you can programattically do it in a single line as follows


concatenate sy-datum+6(2) '/' sy-datum+4(2) '/' sy-datum+0(4) into lv_date.

Former Member
0 Kudos

you can use convert_date_to_external FM to change it in ur required format.

also:

CONVERSION_EXIT_PDATE_OUTPUT

Eg: input = 24012008 and output = 24.01.2008

CONVERT_DATE_FORMAT

Eg: input = 20080201 and output = 01.02.2008

CONVERSION_EXIT_SDATE_OUTPUT

Eg: input = 20070201 and output = 01.FEB.2007

CONVERSION_EXIT_IDATE_INPUT

Eg: input = 01.02.2008 and Output = 20080201

CONVERSION_EXIT_LDATE_OUTPUT

Eg: input = 20070301 and output = 01. March 2007

CONVERSION_EXIT_PDATE_OUTPUT

Eg: input = 20070301 and output = 03.01.2007

Former Member
0 Kudos

Hi rakesh,

Try this

write: sy-datum mm/dd/yyyy. will resolve your issue.

For country specific date formats use the function module DATUMSAUFBEREITUNG

Cheers!!

VEnk@