<?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 format problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315072#M708678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan. Very helpful.&lt;/P&gt;&lt;P&gt;I knew I was doing something wrong. I didn't know that QlikView would interpret that as another condition when all I wanted to do was to assign a value to the variable &lt;EM&gt;date_to&lt;/EM&gt;. But now I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Nov 2011 13:59:58 GMT</pubDate>
    <dc:creator>qw_johan</dc:creator>
    <dc:date>2011-11-12T13:59:58Z</dc:date>
    <item>
      <title>Date format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315070#M708676</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 having problems formatting a date while loading. No errors, but Qlikview doesn't format it correctly.&lt;/P&gt;&lt;P&gt;I am reading dates from an Excel spreadsheet. All dates in that Excel document are in YYYY-MM-DD format.&lt;/P&gt;&lt;P&gt;When I am loading my qv document I want to change all dates after October 31 2011 to October 31 2011.&lt;/P&gt;&lt;P&gt;In my script it looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Date(if(date_to&amp;gt;'2011-10-31',date_to='2011-10-31',date_to)) as date_to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Qlikview changes all matching dates to &lt;STRONG&gt;1899-12-30&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Why...what am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 10:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315070#M708676</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-11-12T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Date format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315071#M708677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your THEN statement is another condition, not an assignement, in this case, so it will return 0, which means 1899-12-30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use the literal instead, the assignment is taking place within the load, i.e.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Date(if(date_to&amp;gt;'2011-10-31', '2011-10-31', date_to)) as date_to&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 11:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315071#M708677</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-12T11:34:50Z</dc:date>
    </item>
    <item>
      <title>Date format problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315072#M708678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan. Very helpful.&lt;/P&gt;&lt;P&gt;I knew I was doing something wrong. I didn't know that QlikView would interpret that as another condition when all I wanted to do was to assign a value to the variable &lt;EM&gt;date_to&lt;/EM&gt;. But now I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 13:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-problem/m-p/315072#M708678</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2011-11-12T13:59:58Z</dc:date>
    </item>
  </channel>
</rss>

