<?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: Strange date format when exporting to CSV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924620#M950655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; It worked.&amp;nbsp; However it truncated the time portion of my date.&amp;nbsp; How do I format this so I will not lose the time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 20:01:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-30T20:01:56Z</dc:date>
    <item>
      <title>Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924617#M950652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am experiencing a strange issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to load a QVD and export it to a CSV.&amp;nbsp; The first column in my QVD is a date field.&amp;nbsp; If I simply load all the columns&lt;/P&gt;&lt;P&gt;from the QVD and store into a CSV, the date field comes out as date (see below).&amp;nbsp; But as soon as I specify a WHERE clause&lt;/P&gt;&lt;P&gt;in the load script, the date column becomes a date serial (see below).&amp;nbsp; If I remove the WHERE clause and run it again, it stores&lt;/P&gt;&lt;P&gt;the date in the CSV.&amp;nbsp; Date format is what I want and not date serial.&amp;nbsp; I need to have a WHERE clause and have the date come out.&lt;/P&gt;&lt;P&gt;What do I need to do?&amp;nbsp; This is kind of strange.&amp;nbsp; I'm sure there is a reason.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the WHERE clause&lt;/P&gt;&lt;P&gt;7/1/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;7/1/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;7/1/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;7/1/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;7/1/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;7/7/2011 12:00:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;With the WHERE clause&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;40730&lt;/P&gt;&lt;P&gt;40730&lt;/P&gt;&lt;P&gt;40729&lt;/P&gt;&lt;P&gt;40729&lt;/P&gt;&lt;P&gt;40729&lt;/P&gt;&lt;P&gt;40729&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 19:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924617#M950652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T19:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924618#M950653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be wrap your date field around with a date function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(DateField) as DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 19:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924618#M950653</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-30T19:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924619#M950654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apart from Sunny T response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try Date(Date#(DateField),'YYYY-MM-DD') as DateField&amp;nbsp; to avoid further complications&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 19:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924619#M950654</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2015-11-30T19:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924620#M950655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; It worked.&amp;nbsp; However it truncated the time portion of my date.&amp;nbsp; How do I format this so I will not lose the time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924620#M950655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924621#M950656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get blanks for this column when I used your solution.&amp;nbsp; Is there a formatting issue in your suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924621#M950656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T20:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924622#M950657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I think that when you run this without a WHERE clause, QlikView is interpreting the field as text rather than date/time. Can you share the WHERE clause with us? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924622#M950657</guid>
      <dc:creator>roger_stone</dc:creator>
      <dc:date>2015-11-30T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924623#M950658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(DateField) as DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924623#M950658</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-30T20:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924624#M950659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The WHERE I included is not even on this date field.&amp;nbsp; It's on another field which is text.&amp;nbsp; I put in the WHERE so I&lt;/P&gt;&lt;P&gt;restrict the rows on the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924624#M950659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T20:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924625#M950660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, this worked.&amp;nbsp; Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924625#M950660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-30T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924626#M950661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, can you share the LOAD statement complete with WHERE clause so that we can get a better idea of what might be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924626#M950661</guid>
      <dc:creator>roger_stone</dc:creator>
      <dc:date>2015-11-30T21:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924627#M950662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924627#M950662</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-30T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924628#M950663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that really putting out the exact format you showed above? i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;7/1/2011 12:00:00 &lt;STRONG&gt;AM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924628#M950663</guid>
      <dc:creator>roger_stone</dc:creator>
      <dc:date>2015-11-30T21:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924629#M950664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it isn't then you can always alter this SET statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924629#M950664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-30T21:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924630#M950665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are two screenshots.&amp;nbsp; One showing without the WHERE clause and its output with the dates shown&lt;/P&gt;&lt;P&gt;correctly.&amp;nbsp; The second screenshot shows the WHERE and its output where the dates are now date serial.&lt;/P&gt;&lt;P&gt;I've blanked "sensitive" info.&amp;nbsp; Others have suggested to use Timestamp() or Date() which will work for me but&lt;/P&gt;&lt;P&gt;if you can figure out what's wrong with these screenshots, please do let me know.&amp;nbsp; Thanks much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_issue1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107750_date_issue1.jpg" style="height: 330px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date_issue2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/107751_date_issue2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924630#M950665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T15:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange date format when exporting to CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924631#M950666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sidney&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to recreate this but my dates come out just fine. All I can think is that maybe col1 and col2 are maybe not formatted consistently within your QVD file but all records with 'RESTORATIVE CLNC' happen to have consistently-formatted dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-date-format-when-exporting-to-CSV/m-p/924631#M950666</guid>
      <dc:creator>roger_stone</dc:creator>
      <dc:date>2015-12-02T10:21:46Z</dc:date>
    </item>
  </channel>
</rss>

