<?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: Date formatting Issue while saving data in .csv in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183273#M383194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date showing single format in Qlikview? I found one possibility that if you don't use any format(Date function) function while loading your data, you may have two formats appearing in your listbox and the same continues while saving data. The very first format function makes all other values to follow the first format and all values formatted in single format.&lt;/P&gt;&lt;P&gt;See the sample, if you remove the outer date function, the saved file will carry two formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date(alt(Date#(Date,'MM/DD/YYYY'),Date#(Date,'DD/MM/YYYY'))) as Date,Value;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Date, Value&lt;/P&gt;&lt;P&gt;01/13/2016, 200&lt;/P&gt;&lt;P&gt;15/01/2016, 400 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Table1 into Table1.xlsx (txt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 18:39:05 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-09-13T18:39:05Z</dc:date>
    <item>
      <title>Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183271#M383192</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 am facing an issue while saving data into .csv through store command. The date format is not remain constant means for few rows date will be DD/MM/YYYY where as for some rows date will be MM/DD/YYYY. To resole the issue i am manually changing the dates by opening a csv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way by which I can over come this issue.&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>Tue, 13 Sep 2016 17:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183271#M383192</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2016-09-13T17:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183272#M383193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a master calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share a script and provide us with a data you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183272#M383193</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-09-13T18:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183273#M383194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date showing single format in Qlikview? I found one possibility that if you don't use any format(Date function) function while loading your data, you may have two formats appearing in your listbox and the same continues while saving data. The very first format function makes all other values to follow the first format and all values formatted in single format.&lt;/P&gt;&lt;P&gt;See the sample, if you remove the outer date function, the saved file will carry two formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Date(alt(Date#(Date,'MM/DD/YYYY'),Date#(Date,'DD/MM/YYYY'))) as Date,Value;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Date, Value&lt;/P&gt;&lt;P&gt;01/13/2016, 200&lt;/P&gt;&lt;P&gt;15/01/2016, 400 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Table1 into Table1.xlsx (txt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183273#M383194</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-13T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183274#M383195</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;Thanks Digvijay and Mindaugas for your help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below given is the script. Strange part is below given test script is now giving proper result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, similar kind of date formatting when i am using iin reality it is not giving proper results. Means for few rows date formats is DD-MM-YY and for few rows date format is MM-DD-YY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why this is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vdate = num(date((monthstart(addmonths(Today(),-1)))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vdate1 =num(date((monthend(addmonths(Today(),-1)))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD Policy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Date,'DD/MM/YYYY') as New_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Premium&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD PolicyNUmber as Policy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Resident A where num(New_Date) &amp;gt;= $(vdate) and num(New_Date) &amp;lt;= $(vdate1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE B into E:\Qlikview\Date wise.csv(txt);&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>Sat, 17 Sep 2016 12:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183274#M383195</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2016-09-17T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183275#M383196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think as long as you have statement &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(Date,'DD/MM/YYYY') as New_Date (at the start of loading this field), it will have all values of New_Date in DD/MM/YYYY format, can you share the value of environment variable DateFormat? Appearing at the top of the script as SET DateFormat='DD-MM-YYYY';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 05:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183275#M383196</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-18T05:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date formatting Issue while saving data in .csv</title>
      <link>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183276#M383197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also can you share the sample where it is giving double format output. As you said now this script is showing correct results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 05:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-formatting-Issue-while-saving-data-in-csv/m-p/1183276#M383197</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-09-18T05:27:59Z</dc:date>
    </item>
  </channel>
</rss>

