<?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 Date problem while exporting to excel using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335277#M828848</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 created a macro to export a table to excel, but unfortunately the some dates in excel are different from the original table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: In original date I have 06/05/2013 but when I export using the macro the date comes to 05/06/2013. Only with some dates. Most of them I get the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried putting Date(field, "DD/MM/YYYY") on script and also on table properties but no success at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you guys have some ideia on how to workaround that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Date problem while exporting to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335277#M828848</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 created a macro to export a table to excel, but unfortunately the some dates in excel are different from the original table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: In original date I have 06/05/2013 but when I export using the macro the date comes to 05/06/2013. Only with some dates. Most of them I get the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried putting Date(field, "DD/MM/YYYY") on script and also on table properties but no success at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you guys have some ideia on how to workaround that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335277#M828848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem while exporting to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335278#M828849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the variables in the "Main" script window, make sure you have the below entry..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='MM/DD/YYYY';&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope this helps...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 21:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335278#M828849</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-07-05T21:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem while exporting to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335279#M828850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;=date#(&amp;lt;date filed&amp;gt;,'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=date(date#(&amp;lt;date filed&amp;gt;,'DD/MM/YYYY'),&amp;lt;Formt code&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert in Excel, click column A and chcnge the format to Short Date.Then select Data|Text to columns and click Finish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using Send to Excel:&lt;/P&gt;&lt;P&gt;If you are using the IE PlugIn, you can right-click and choose Copy to Clipboard|Full Table. Then paste into Excel&lt;/P&gt;&lt;P&gt;Or Right-Click and Export to csv. Then open in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time on charts, that needs exporting we ended up giving Fast Change option to clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/31304" title="https://community.qlikview.com/thread/31304"&gt;Date changes to Number when export to Excel | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 12:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335279#M828850</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2017-07-06T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem while exporting to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335280#M828851</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;In the script code, format all dates as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(&amp;lt;date filed&amp;gt;,'YYYY/MM/DD'). When it exported, the date format turns automatically into DD/MM/YYYY for some unknown reason. But it worked. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/1335280#M828851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem while exporting to excel using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/2065179#M1223421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I face the same issue.&lt;/P&gt;
&lt;P&gt;Did you found a solution please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 09:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-while-exporting-to-excel-using-macro/m-p/2065179#M1223421</guid>
      <dc:creator>Safa_Guedria</dc:creator>
      <dc:date>2023-04-27T09:24:40Z</dc:date>
    </item>
  </channel>
</rss>

