Skip to Content
author's profile photo Former Member
Former Member

Date Format problem

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 11:01 AM

    the date format depends on the user settings...

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 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,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.