<?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 Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992560#M974924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had same issue. our date DB the shows a PeriodID as YYYYMMDD but this is a numeric format and not a date number format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, if you have another DB Table, with the normal date format such as MM/DD/YYYY and what to join both table. you might want to use the script "&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Date(&lt;/SPAN&gt;Date#(Date,'YYYYMMDD'),&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;'YYYY/MM/DD')&lt;/SPAN&gt; as Date_DB&lt;/SPAN&gt;" on the Date_DB and any other table that uses that date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 19:48:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-13T19:48:10Z</dc:date>
    <item>
      <title>Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992555#M974919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am loading Date Fields from Data base in the following format:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DB_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;20010430&lt;/P&gt;&lt;P&gt;20150615&lt;/P&gt;&lt;P&gt;20150616&lt;/P&gt;&lt;P&gt;20150617&lt;/P&gt;&lt;P&gt;20150618&lt;/P&gt;&lt;P&gt;20150619&lt;/P&gt;&lt;P&gt;20150622&lt;/P&gt;&lt;P&gt;20150629&lt;/P&gt;&lt;P&gt;20150630&lt;/P&gt;&lt;P&gt;20020430&lt;/P&gt;&lt;P&gt;20141229&lt;/P&gt;&lt;P&gt;20020501&lt;/P&gt;&lt;P&gt;20020502&lt;/P&gt;&lt;P&gt;20020503&lt;/P&gt;&lt;P&gt;20020504&lt;/P&gt;&lt;P&gt;20020507&lt;/P&gt;&lt;P&gt;20020508&lt;/P&gt;&lt;P&gt;20020509&lt;/P&gt;&lt;P&gt;20020510&lt;/P&gt;&lt;P&gt;20020511&lt;/P&gt;&lt;P&gt;20020514&lt;/P&gt;&lt;P&gt;20020515&lt;/P&gt;&lt;P&gt;20020516&lt;/P&gt;&lt;P&gt;20020517&lt;/P&gt;&lt;P&gt;20020518 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am generating another date using below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar_Temp&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() = 1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('2009', '1', '1'), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Cal_Date')+1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cal_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(365*(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-2008)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the following Transformation in both the dates:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt; &lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt; Date,&lt;BR /&gt; Date(Date,'YYYY/MM/DD') as Date_DB&lt;BR /&gt; Resident &lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN lang=""&gt;DB_Date&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calender:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; Date(Date,'YYYY/MM/DD') as Date_CalGen&lt;/P&gt;&lt;P&gt; Resident Calendar_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Tables&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Calendar_Temp,Date_Temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This executes sucessfully and I am getting the fields like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;IMG alt="Date1.qvw" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98256_Date1.qvw" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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;/P&gt;&lt;P&gt;I used the same date format (YYYY/MM/DD) but still I am getting both the date format different. Can Any one suggest me how I'll fix this and how I'll get both the dates in same format.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am using the personal edition so please share the script.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 07:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992555#M974919</guid>
      <dc:creator>soha1902</dc:creator>
      <dc:date>2015-09-08T07:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992556#M974920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the date format in DB, might be it is saved in UNIX time Stamp or other format ..and convert it accordingly &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 07:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992556#M974920</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-08T07:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992557#M974921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #ff0000;"&gt;Date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #ff0000;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DB_Date&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;BR /&gt;Date(Date#(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DB_Date&lt;/STRONG&gt;&lt;/SPAN&gt;,'YYYYMMDD'),'&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;YYYY/MM/DD&lt;/SPAN&gt;') as Date&lt;BR /&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: Calibri; color: #ff0000;"&gt;&lt;STRONG&gt;DB_Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #ff0000;"&gt;&lt;SPAN lang="EN" style="font-weight: inherit; font-style: inherit; font-size: 10.6666679382324px; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 07:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992557#M974921</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-09-08T07:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992558#M974922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Date(&lt;/SPAN&gt;Date#(Date,'YYYYMMDD'),&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;'YYYY/MM/DD')&lt;/SPAN&gt; as Date_DB&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 07:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992558#M974922</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-08T07:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992559#M974923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use Date(Date#(...)) as indicated in several answers above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A date is internally stored as a number that is roughly equal to 42000, but you load numbers that are roughly 20 millions. See more on &lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; and &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 08:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992559#M974923</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-08T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992560#M974924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had same issue. our date DB the shows a PeriodID as YYYYMMDD but this is a numeric format and not a date number format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, if you have another DB Table, with the normal date format such as MM/DD/YYYY and what to join both table. you might want to use the script "&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;Date(&lt;/SPAN&gt;Date#(Date,'YYYYMMDD'),&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;'YYYY/MM/DD')&lt;/SPAN&gt; as Date_DB&lt;/SPAN&gt;" on the Date_DB and any other table that uses that date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 19:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992560#M974924</guid>
      <dc:creator />
      <dc:date>2015-10-13T19:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992561#M974925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For DB_Date use the following transformations.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(Date#(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DB_Date&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;,'YYYYMMDD'),'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YYYY/MM/DD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;') as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 01:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992561#M974925</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-10-14T01:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992562#M974926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, sometimes that alt function can return a number, but it is still way out of bounds.&amp;nbsp; Some range checking helps bring things back inline sometimes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 02:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format/m-p/992562#M974926</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2015-10-14T02:03:57Z</dc:date>
    </item>
  </channel>
</rss>

