<?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>Question Re: convert excel text format date to SAP ABAP format date in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730563#M3483815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did little browsing on how Excel stores the date format, i found the below link has got useful information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://answers.oreilly.com/topic/1694-how-excel-stores-date-and-time-values/"&gt;http://answers.oreilly.com/topic/1694-how-excel-stores-date-and-time-values/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It states that excel by default considers the date &lt;SPAN style="color: #333333; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; background-color: #ffffff;"&gt; January 1, 1900&lt;/SPAN&gt; as Day 1 and does the conversion for internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you were able to solve the issue with this thread &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1860122" style="font-size: 12px; background-color: #ffffff; color: #3778c7; text-decoration: underline !important;"&gt;https://scn.sap.com/thread/1860122&lt;/A&gt;&amp;nbsp; you can go ahead with that logic. However if the excel is manually generated and if someone changes the property to 1904 as mentioned then you might have an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sriranjani Chimakurthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 08:10:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-11T08:10:36Z</dc:date>
    <item>
      <title>convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaq-p/9730556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am uploading an excel file(.xlsx) to ALV in webdynpro. I am able to upload data, however the date field is read as text rather than date type.&lt;/P&gt;&lt;P&gt;Hence I am getting 41500 instead of&amp;nbsp; 8/14/2013.&lt;/P&gt;&lt;P&gt;If you type&amp;nbsp; 8/14/2013 in excel cell and right click and format cell and change the format to text type you will see that&amp;nbsp; 8/14/2013 changes to 41500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I convert back 41500 to 8/14/2013 in ABAP?&lt;/P&gt;&lt;P&gt;Do we have any FM available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be highly appreciated.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 10:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaq-p/9730556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730557#M3483809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly save the field as text and provide the date in the required format, then excel does not change the field to internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sriranjani Chimakurthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 10:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730557#M3483809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T10:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730558#M3483810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure in your are using data type as DATS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. Chandra..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 10:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730558#M3483810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T10:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730559#M3483811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriranjani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below thread solves my problem, however it calculates date difference with January 01, 2008.&lt;/P&gt;&lt;P&gt;Is there any optimal solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1860122" style="font-size: 10pt;"&gt;https://scn.sap.com/thread/1860122&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 12:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730559#M3483811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T12:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730560#M3483812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your excel has got a formula linked to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ideal one would be to change the date column to text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sriranjani Chimakurthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730560#M3483812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-10T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730561#M3483813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there is no formula linked. I am exporting the excel sheet using in-built export to excel functionality and importing back by changing some financial values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method worksheet-&amp;gt;get_cell is getting all data as CSTRING. As in excel 2007, Text format of date returns numeric value, hence it is auto-typecasting it to text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the thread in my previous reply for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to convert the numeric date back to sap date format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 04:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730561#M3483813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T04:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730562#M3483814</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;Could you please try below function modules to convert date from excel to sap format and let me know.&lt;/P&gt;&lt;P&gt;KCD_EXCEL_DATE_CONVERT&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERN_FORMAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Abirami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 07:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730562#M3483814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T07:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730563#M3483815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did little browsing on how Excel stores the date format, i found the below link has got useful information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://answers.oreilly.com/topic/1694-how-excel-stores-date-and-time-values/"&gt;http://answers.oreilly.com/topic/1694-how-excel-stores-date-and-time-values/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It states that excel by default considers the date &lt;SPAN style="color: #333333; font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; background-color: #ffffff;"&gt; January 1, 1900&lt;/SPAN&gt; as Day 1 and does the conversion for internal format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you were able to solve the issue with this thread &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1860122" style="font-size: 12px; background-color: #ffffff; color: #3778c7; text-decoration: underline !important;"&gt;https://scn.sap.com/thread/1860122&lt;/A&gt;&amp;nbsp; you can go ahead with that logic. However if the excel is manually generated and if someone changes the property to 1904 as mentioned then you might have an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sriranjani Chimakurthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 08:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730563#M3483815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T08:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: convert excel text format date to SAP ABAP format date</title>
      <link>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730564#M3483816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriranjani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can understand the potential risk of changing property to 1904 date system. I know this is not the best solution for the issue. That's why I am looking for an optimal solution.&lt;/P&gt;&lt;P&gt;Please try to find one with me.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/convert-excel-text-format-date-to-sap-abap-format-date/qaa-p/9730564#M3483816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T11:07:10Z</dc:date>
    </item>
  </channel>
</rss>

