2008 Oct 29 2:13 PM
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
2008 Oct 29 2:17 PM
You have to use set date mask search SCN you can find solution
2008 Oct 29 2:19 PM
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.
2008 Oct 29 2:20 PM
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
2008 Oct 29 2:21 PM
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@