‎2007 Nov 23 10:55 AM
Hi all,
In my print program there is a date field...in FORM some times it is displaying date like DDMMYYYY format and some times MMDDYYYY.
How can I find which format date is stored in particular field???
Thanks in advance...
‎2007 Nov 23 11:01 AM
Hi
Go for debugging and in the fields check the date field and u can find the
format in which it is dispalying
if u are moving fields to any itab check the final itab with the date field and find the format
Regards
Sreenivas
‎2007 Nov 23 11:01 AM
the date format depends on the user settings...
check your login settings... and keep the date format which you want...
‎2007 Nov 23 11:02 AM
Hi,
Use FM CY_CONVERT_DATE to convert the date into current user format.
CALL FUNCTION 'CY_CONVERT_DATE'
EXPORTING
date_string_imp = lv_lfdate
IMPORTING
date_string_exp = lv_fdate1
date_exp = lv_fdate2.
Regards,
Prashant
‎2007 Nov 23 11:25 AM
Hi Prashanth,
You've any example on this FM ..
I'm struggling to find which values I've to pass thru 'lv_lfdate'
Thanks
‎2007 Nov 23 11:02 AM
Hi,
Normally it will be in the Format YYYYMMDD. If u want to know go the table,click on the data element attached to that field.and then click on the domain attached to that.There u can see the format for that field.
Rgds,