<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get date format value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596532#M1436699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to understand one thing that before you do any processing of the data from the legacy file there should be a common &lt;/P&gt;&lt;P&gt;understanding between you and the client on the field you are goind to use . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose there is a field as 02/02/2010 in ur file . Neither the client nor you can say if its mm/d/yyyy format or dd/mm/yyyy format . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please discuss this with client and get the field in what format they are looking at and appropiately build the code for it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 06:00:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-09T06:00:53Z</dc:date>
    <item>
      <title>Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596525#M1436692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field for date in a incoming file. The file can have date in any of the following format DD.MM.YYYY, MM/DD/YYYY, MM-DD-YYYY, YYYY.MM.DD, YYYY/MM/DD or YYYY-MM-DD. How can I decide which exact date format is entered in file? is there any FM or any other way to decide the Date format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596525#M1436692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596526#M1436693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basic date questions are not allowed. Please search in SCN you will find many posts related to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596526#M1436693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596527#M1436694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have already searched SCN but most of the threads are related to conversion of Date format. My question is to identify the user entered date format with the help of FM or any other easy way. otherwise simply i can write a piece of code to decide the date format based on the separator value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596527#M1436694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596528#M1436695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no such FM you have to write your own logic to handel it,&lt;/P&gt;&lt;P&gt;best way will be to fix the formates for input or at least accept only predefined formates not in any formate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596528#M1436695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596529#M1436696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even with the field separator, you cannot make out the format of date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MM.DD.YYYY and DD.MM.YYYY can have the same values.&lt;/P&gt;&lt;P&gt;A solution to this this could be adding another field with dropdown on selection screen as 'date format'. User, along with date will also provide the date format. with help of this format, you can process the dates in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:36:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596529#M1436696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596530#M1436697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I will be using only following specific DD.MM.YYYY, MM/DD/YYYY, MM-DD-YYYY, YYYY.MM.DD, YYYY/MM/DD or YYYY-MM-DD. So i think, there will not be any conflict while deciding the date format based on separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596530#M1436697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596531#M1436698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably we can use something as we have done in the below code. Take the idea from here and build the logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: date type char10, &lt;/P&gt;&lt;P&gt;      date1 type char10, &lt;/P&gt;&lt;P&gt;      sign type char15. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date = '120110'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date1 = sy-datum+0(2). &lt;/P&gt;&lt;P&gt;CONCATENATE '__/__/' date1 '__' into sign. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE date USING EDIT MASK sign TO date1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write date1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 05:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596531#M1436698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T05:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596532#M1436699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to understand one thing that before you do any processing of the data from the legacy file there should be a common &lt;/P&gt;&lt;P&gt;understanding between you and the client on the field you are goind to use . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose there is a field as 02/02/2010 in ur file . Neither the client nor you can say if its mm/d/yyyy format or dd/mm/yyyy format . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please discuss this with client and get the field in what format they are looking at and appropiately build the code for it . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 06:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596532#M1436699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596533#M1436700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;if you are very sure that the formats are going to be these only, then you can go ahead with string manipulations.&lt;/P&gt;&lt;P&gt;use CP, CN, CO ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;split text1 at '/' into table it_text. " chops the string at '/' and puts sequentially in table it_text(field shud b char)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of "case" has to be done in your requirement again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 07:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596533#M1436700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T07:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596534#M1436701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to look in the class CL_ABAP_DATFM &lt;/P&gt;&lt;P&gt;i think it may help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 07:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596534#M1436701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T07:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get date format value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596535#M1436702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date questions are asked so frequently, that they will often be rejected. In this case I think the interest is just about sufficient for the thread to remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 09:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-date-format-value/m-p/6596535#M1436702</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-02-09T09:40:52Z</dc:date>
    </item>
  </channel>
</rss>

