<?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 conversion giving wrong values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174883#M43535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You need to transform your field in the script as&lt;/P&gt;&lt;P&gt;date(date#(FIELD1,'YYYYMMDD'),'YYYY/MM/DD') as field1&lt;/P&gt;&lt;P&gt;this is going to transform the original with the format YYYYMMDD, , so you can use year(), month() etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Nov 2010 08:56:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-07T08:56:24Z</dc:date>
    <item>
      <title>Date conversion giving wrong values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174881#M43533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would really appreciate help with this date issue.&lt;/P&gt;&lt;P&gt;i have a datefield Field1 = 20100701&lt;/P&gt;&lt;P&gt;if i use month(Field1) as Month then Month = 'Nov' and this is wrong it is supposed to be Jul&lt;/P&gt;&lt;P&gt;and when i want to get the year is use year(Field1) and i get 56933&lt;/P&gt;&lt;P&gt;what am i missing ?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 05:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174881#M43533</guid>
      <dc:creator />
      <dc:date>2010-11-07T05:16:34Z</dc:date>
    </item>
    <item>
      <title>Date conversion giving wrong values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174882#M43534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to add the way i get to field1 date field is&lt;/P&gt;&lt;P&gt;19000000 + field1 as field1&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 05:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174882#M43534</guid>
      <dc:creator />
      <dc:date>2010-11-07T05:36:13Z</dc:date>
    </item>
    <item>
      <title>Date conversion giving wrong values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174883#M43535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You need to transform your field in the script as&lt;/P&gt;&lt;P&gt;date(date#(FIELD1,'YYYYMMDD'),'YYYY/MM/DD') as field1&lt;/P&gt;&lt;P&gt;this is going to transform the original with the format YYYYMMDD, , so you can use year(), month() etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 08:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174883#M43535</guid>
      <dc:creator />
      <dc:date>2010-11-07T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Date conversion giving wrong values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174884#M43536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Another way to do the same is to use MakeDate(Year,Month,Day)&lt;/P&gt;&lt;P&gt;MakeDate(Left(FIELD1,4), Mid(FIELD1, 5,2), Right(FIELD1,2) AS Date&lt;/P&gt;&lt;P&gt;What is the default fate format in the script settings ?? You may try to set it to YYYYMMDD, and then use a simple Date(FIELD1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 10:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174884#M43536</guid>
      <dc:creator>etay_netintent</dc:creator>
      <dc:date>2010-11-07T10:19:24Z</dc:date>
    </item>
    <item>
      <title>Date conversion giving wrong values</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174885#M43537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jean-Jacques Jesua thanks so much it worked 100% for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 15:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion-giving-wrong-values/m-p/174885#M43537</guid>
      <dc:creator />
      <dc:date>2010-11-07T15:03:11Z</dc:date>
    </item>
  </channel>
</rss>

