Application Development and Automation 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: 
Read only

Date Format problem

Former Member
0 Likes
614

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...

5 REPLIES 5
Read only

Former Member
0 Likes
584

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

Read only

Former Member
0 Likes
584

the date format depends on the user settings...

check your login settings... and keep the date format which you want...

Read only

former_member386202
Active Contributor
0 Likes
584

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

Read only

0 Likes
584

Hi Prashanth,

You've any example on this FM ..

I'm struggling to find which values I've to pass thru 'lv_lfdate'

Thanks

Read only

Former Member
0 Likes
584

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,