<?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: SmartTable Excel Download Date format issue in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/13993906#M4900281</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please refer to this - &lt;A href="https://sapui5.hana.ondemand.com/#/topic/283217d8f187401c8045723abc27e5e0" target="_blank" rel="noopener"&gt;https://sapui5.hana.ondemand.com/#/topic/283217d8f187401c8045723abc27e5e0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When using Date EdmType, you should use 'format' property. You could write like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class=""&gt;property&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Duedate"&lt;/SPAN&gt;&lt;SPAN&gt;, label: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Due date (islamic)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: sap.ui.export.EdmType.Date, &lt;SPAN class=""&gt;format&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"dd/mm/yyyy"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working for me. Hope it might solve your issue too.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 07:30:04 GMT</pubDate>
    <dc:creator>dipender002</dc:creator>
    <dc:date>2025-01-23T07:30:04Z</dc:date>
    <item>
      <title>SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaq-p/736833</link>
      <description>&lt;P&gt;I'm using sap.ui.comp.smarttable.SmartTable for displaying data in table. I was able to display Dates in Date format by using CustomData. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/258334-viewcode.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But when I'm downloading data in Excel, it is showing data in json date format&lt;/P&gt;
  &lt;P&gt;/Date(1451606400000)/&lt;/P&gt;
  &lt;P&gt;I was able to show date format by using the onBeforeExport event, by passing type as Edm.Date type. This way, I was able to display json date as Date in MM/dd/yyyy format. But my requirement is to show date as dd/MM/yyyy. I understand that I need to use inputFormat property, but I could not figureout how to pass the property as my required data. Can anyone please suggest on the format I need to use..&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/258335-controllercode.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 14:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaq-p/736833</guid>
      <dc:creator>bhavya_sri3</dc:creator>
      <dc:date>2018-12-25T14:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736834#M206970</link>
      <description>&lt;P&gt;change inputFormat to format to see if it helps&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 15:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736834#M206970</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-12-25T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736835#M206971</link>
      <description>&lt;P&gt;The SmartTable is using Spreadsheet api internally and it seems it doesn't have "format" property for workbook.columns..&lt;/P&gt;&lt;P&gt;&lt;A href="https://sapui5.hana.ondemand.com/#/api/sap.ui.export.Spreadsheet/constructor" target="test_blank"&gt;https://sapui5.hana.ondemand.com/#/api/sap.ui.export.Spreadsheet/constructor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavyasri M&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 16:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736835#M206971</guid>
      <dc:creator>bhavya_sri3</dc:creator>
      <dc:date>2018-12-25T16:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736836#M206972</link>
      <description>&lt;P&gt;can you just try? it is no harm.....&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 17:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736836#M206972</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-12-25T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736837#M206973</link>
      <description>&lt;P&gt;Hi Bhavya,&lt;/P&gt;&lt;P&gt;Is the column property type that is coming from backend is of type date or string?&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 17:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736837#M206973</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2018-12-25T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736838#M206974</link>
      <description>&lt;P&gt;Hi Bhavya,&lt;/P&gt;&lt;P&gt;In the custom data that you are using, try passing the type as well:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...."leadingProperty":"", "type":"date" }'/&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the custom data along with the other properties you are passing,&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 17:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736838#M206974</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2018-12-25T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736839#M206975</link>
      <description>&lt;P&gt;I tried.. it is not throwing any error but it is still showing the date in MM/dd/yyyy format..&lt;/P&gt;&lt;P&gt;Tried these two statements..&lt;/P&gt;&lt;P&gt;mExcelSettings.workbook.columns[33].format= "dd/MM/yyyy";&lt;/P&gt;&lt;P&gt;mExcelSettings.workbook.columns[33].format= "dd-MM-yyyy";&lt;/P&gt;&lt;P&gt;Do you think the date formats I'm trying to use are wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavya&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 03:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736839#M206975</guid>
      <dc:creator>bhavya_sri3</dc:creator>
      <dc:date>2018-12-26T03:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736840#M206976</link>
      <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;I tried using the date type in custom data.. but it has no affect on the excel.. still getting the date in MM/dd/yyyy format.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavya&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 03:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736840#M206976</guid>
      <dc:creator>bhavya_sri3</dc:creator>
      <dc:date>2018-12-26T03:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736841#M206977</link>
      <description>&lt;P&gt;Hi Bhavya, What is the type of that property you are receiving from the backend, it is string or date?&lt;/P&gt;&lt;P&gt;BR,Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 03:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736841#M206977</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2018-12-26T03:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736842#M206978</link>
      <description>&lt;P&gt;You can see the example here as well, which showcases two scenarios&lt;/P&gt;&lt;P&gt;1. If the date is coming as a string&lt;/P&gt;&lt;P&gt;2. If the date is coming as a date type&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/sample/sap.ui.export.sample.formatting/code/Spreadsheet.controller.js" target="test_blank"&gt;https://ui5.sap.com/#/sample/sap.ui.export.sample.formatting/code/Spreadsheet.controller.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am still wondering why you are using the custom column? to do any formatting?(I dont see any formating there).&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 04:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736842#M206978</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2018-12-26T04:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736843#M206979</link>
      <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;Sorry for the delayed response..&lt;/P&gt;&lt;P&gt;I'm receiving date in the 'date' type from backend. It is coming in json format something like /Date(1490918400000)/&lt;/P&gt;&lt;P&gt;I have tried changing the settings similar to that of in the example but it is still not showing in correct format..&lt;/P&gt;&lt;P&gt;aCols.push({ &lt;/P&gt;&lt;P&gt;             label: 'DateString', &lt;/P&gt;&lt;P&gt;             type: 'date', &lt;/P&gt;&lt;P&gt;             property: 'SampleDateString', &lt;/P&gt;&lt;P&gt;             inputFormat: 'yyyymmdd', &lt;/P&gt;&lt;P&gt;             width: 25
});&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavyasri M&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 13:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736843#M206979</guid>
      <dc:creator>bhavya_sri3</dc:creator>
      <dc:date>2018-12-27T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736844#M206980</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did someone find a solution for this? I've also tried onBeforeExport event, but without any success.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736844#M206980</guid>
      <dc:creator>AdrDen</dc:creator>
      <dc:date>2019-08-08T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736845#M206981</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have also faced the same issue.&lt;/P&gt;&lt;P&gt;I have and extended column with date, but after giving type property as date, it was working.&lt;/P&gt;&lt;P&gt;&amp;lt;core:CustomData key="p13nData"
value='\{"columnKey": "Callback", "sortProperty": "Callback","filterProperty":"Callback","columnIndex":"7", "leadingProperty": "Callback", &lt;STRONG&gt;"type":"date"&lt;/STRONG&gt;}'/&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks Manish!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 12:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/736845#M206981</guid>
      <dc:creator>former_member631239</dc:creator>
      <dc:date>2020-02-10T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable Excel Download Date format issue</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/13993906#M4900281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please refer to this - &lt;A href="https://sapui5.hana.ondemand.com/#/topic/283217d8f187401c8045723abc27e5e0" target="_blank" rel="noopener"&gt;https://sapui5.hana.ondemand.com/#/topic/283217d8f187401c8045723abc27e5e0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When using Date EdmType, you should use 'format' property. You could write like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class=""&gt;property&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Duedate"&lt;/SPAN&gt;&lt;SPAN&gt;, label: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Due date (islamic)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: sap.ui.export.EdmType.Date, &lt;SPAN class=""&gt;format&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"dd/mm/yyyy"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working for me. Hope it might solve your issue too.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 07:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-excel-download-date-format-issue/qaa-p/13993906#M4900281</guid>
      <dc:creator>dipender002</dc:creator>
      <dc:date>2025-01-23T07:30:04Z</dc:date>
    </item>
  </channel>
</rss>

