‎2008 Mar 24 8:51 AM
Hi All,
Coud you please some body let me know what is the function module that I can use to convert date format to user specific date format.Using the function module SLS_MISC_GET_USER_DATE_FORMAT I am getting the date format settings of that particular user after that how to convert my dateformat(MM.DD.YYYY always) to the userspecific format.
Regards
Mahesh
‎2008 Mar 24 8:54 AM
this command is more than useful i suppose.
WRITE sy-datum TO:
date_mask DD/MM/YYYY.
‎2008 Mar 24 8:56 AM
This function module is usally used for this purpose.It also checks the whether the entred date is correct.DATE_CONV_EXT_TO_INT
‎2008 Mar 24 9:02 AM
‎2008 Mar 24 9:08 AM
Hi ,
Make use of FM.
FORMAT_DATE_4_OUTPUT
example.
Import parameters Value
DATIN 01.02.2007
FORMAT MM.DD.YYYY
Export parameters Value
DATEX 02.01.2007
Regards,
Balakumar.G.
Reward Points if helpful.
‎2008 Mar 24 9:23 AM
hi,
the function module is DATE_CONV_EXT_TO_INT
or you can change date format by
ate-date = sy-datum.
APPEND date.
DATA: dd TYPE string.
DATA: mm TYPE string.
DATA: yyyy TYPE string.
LOOP AT date.
dd = date-date+6(2).
mm = date-date+4(2).
yyyy = date-date+0(4).
yyyy = date-date+2(2).
CONCATENATE dd yyyy mm INTO date-date1.
WRITE sy-datum DDMMYY.
MODIFY date .
ENDLOOP.
if helpful give rewards points
regards,
pankaj vashista