<?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/763758#M271471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The debugger should point you where the error occurs.&lt;/P&gt;&lt;P&gt;Could you post the error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Mar 2015 06:13:25 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2015-03-21T06:13:25Z</dc:date>
    <item>
      <title>Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763756#M271469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting error in below code.&lt;/P&gt;&lt;P&gt;I am suspecting the error is related to date format.&lt;/P&gt;&lt;P&gt;Can someone help me here?&lt;/P&gt;&lt;P&gt;Any input would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET QDateFormat&amp;nbsp;&amp;nbsp; = 'YYYY/MM/DD hh:mm:ss'&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DATE_C:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;DATE_CH ;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;SELECT TRUNC(SYSDATE) as DATE_CH from dual; //(SELECT to_date('03/07/2015','mm/dd/yyyy')&amp;nbsp; from dual)&lt;/P&gt;&lt;P&gt;Let vDate =( peek('DATE_CH',0,DATE_C));&lt;/P&gt;&lt;P&gt;DROP Table DATE_C;&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;VERSIONDATE:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;VERSION_DATE;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select distinct BUILD_DT as VERSION_DATE from TIME_V where DAY_DATE = to_date('$(vDate)','$(QDateFormat)');&lt;/P&gt;&lt;P&gt;//(SELECT to_date('03/07/2015','mm/dd/yyyy')&amp;nbsp; from dual);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vVersionDate = num(peek('VERSION_DATE',0,VERSIONDATE));&lt;/P&gt;&lt;P&gt;DROP Table VERSIONDATE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 04:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763756#M271469</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-03-21T04:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763757#M271470</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;You can handle the date formats in the qlikview load script rather than the Sql select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 06:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763757#M271470</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-03-21T06:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763758#M271471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The debugger should point you where the error occurs.&lt;/P&gt;&lt;P&gt;Could you post the error message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 06:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763758#M271471</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-21T06:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763759#M271472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is Oracle your db?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to match your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vDate format with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QDateFormat format&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I think (guess) your qDateFormat should be (db format)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'DD/MM/YYYY HH:MI:SS' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but if you post the script (including set ...), the error and which db it should be simpler to answer; also add some trace for vDate (or debug as Mika suggested)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 07:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763759#M271472</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-21T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763760#M271473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oracle provider for OLE DB&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;SET QDateFormat&amp;nbsp;&amp;nbsp; = 'YYYY/MM/DD hh:mm:ss'&amp;nbsp; ;&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;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DATE_C:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DATE_CH ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT TRUNC(SYSDATE) as DATE_CH from dual; //(SELECT to_date('03/07/2015','mm/dd/yyyy')&amp;nbsp; from dual)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vDate =( peek('DATE_CH',0,DATE_C));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP Table DATE_C;&lt;/P&gt;&lt;P&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;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;VERSIONDATE:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;VERSION_DATE;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select distinct BUILD_DT as VERSION_DATE from TIME_V where DAY_DATE = to_date('$(vDate)','$(QDateFormat)');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//(SELECT to_date('03/07/2015','mm/dd/yyyy')&amp;nbsp; from dual);&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;Let vVersionDate = num(peek('VERSION_DATE',0,VERSIONDATE));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DROP Table VERSIONDATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The debbuger points at bold statement&lt;/P&gt;&lt;P&gt;and error is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81587_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 17:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763760#M271473</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-03-23T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763761#M271474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a working example, table name and column name are different, DATE_KEY is an Oracle&amp;nbsp; date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='DD/MM/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET QDateFormat&amp;nbsp; = 'DD/MM/YYYY'&amp;nbsp; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATE_C:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load DATE_CH;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT TRUNC(SYSDATE)-1000 as DATE_CH from dual; //(SELECT to_date('03/07/2015','mm/dd/yyyy')&amp;nbsp; from dual)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vDate = date(floor(peek('DATE_CH',0,DATE_C)));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table DATE_C;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace $(vDate);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VERSIONDATE:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate Load VERSION_DATE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select distinct DATE_KEY as VERSION_DATE from D_DATE_NOW where DATE_KEY &amp;lt;= to_date('$(vDate)','$(QDateFormat)');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vVersionDate = num(peek('VERSION_DATE',0,VERSIONDATE));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table VERSIONDATE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 17:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763761#M271474</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-23T17:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/763762#M271475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still gives same error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/763762#M271475</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-03-23T18:10:19Z</dc:date>
    </item>
  </channel>
</rss>

