<?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: Timestamp to date conversion with Date Variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336147#M840309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try doing the formatting of your variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;LET vMaxSOHDate = &lt;STRONG&gt;Date&lt;/STRONG&gt;(PEEK('MaxSOHDate') , '&lt;STRONG&gt;YYYY&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-MM-DD hh:mm:ss TT&lt;/STRONG&gt;' );&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 05:36:42 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-04-28T05:36:42Z</dc:date>
    <item>
      <title>Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336146#M840308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my DB date stored as Timestamp formate, my qvd and report just need to use date only. so i tried with floor function but getting below kind of error. do you have any idea to resolve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Incorrect syntax near '10'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TableA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Plant = '1000' and Date=2017-04-28 10:00:19 AM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;below is my script:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxSOHDate:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT max(Date) as MaxSOHDate&lt;/P&gt;&lt;P&gt;FROM TableA&lt;/P&gt;&lt;P&gt;Where Plant = '1000';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxSOHDate = PEEK('MaxSOHDate');&lt;/P&gt;&lt;P&gt;DROP TABLE MaxSOHDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stock:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Barcode as soh_item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor(Date) as soh_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOH as soh;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM TableA&lt;/P&gt;&lt;P&gt;Where Plant = '1000' &lt;STRONG&gt;and Date=$(vMaxSOHDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE &lt;SPAN style="font-size: 13.3333px;"&gt;Stock &lt;/SPAN&gt;into $(vQVDPath)\&lt;SPAN style="font-size: 13.3333px;"&gt;Stock&lt;/SPAN&gt;.QVD;&lt;/P&gt;&lt;P&gt;DROP table &lt;SPAN style="font-size: 13.3333px;"&gt;Stock&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336146#M840308</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336147#M840309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try doing the formatting of your variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;LET vMaxSOHDate = &lt;STRONG&gt;Date&lt;/STRONG&gt;(PEEK('MaxSOHDate') , '&lt;STRONG&gt;YYYY&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-MM-DD hh:mm:ss TT&lt;/STRONG&gt;' );&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 05:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336147#M840309</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-04-28T05:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336148#M840310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Devarasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14933585077272361" jivemacro_uid="_14933585077272361" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Where Plant = '1000' &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and Date='$(vMaxSOHDate)';&lt;/STRONG&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 05:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336148#M840310</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-28T05:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336149#M840311</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've tried the suggested way but it still getting same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: Incorrect syntax near '10'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM TableA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Plant = '1000' and Date=2017-04-28 10:00:19 AM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 05:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336149#M840311</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-28T05:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336150#M840312</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;Tried that too, &lt;/P&gt;&lt;P&gt;script ran and result shows,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table 0 Lines fetched&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 05:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336150#M840312</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-28T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336151#M840313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be issue here&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Stock:&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;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Barcode as soh_item,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor(Date) as soh_date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOH as soh,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Plant &lt;/STRONG&gt;&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;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM TableA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Plant = 1000 &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;and Date=$(vMaxSOHDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 05:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336151#M840313</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-28T05:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336152#M840314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now, appending quotes fixes the error caused during reload. To fix the data availability issue follow below options:&lt;/P&gt;&lt;P&gt;- First check what exact value is there in &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TableA&lt;/STRONG&gt; for field &lt;STRONG&gt;Date&lt;/STRONG&gt; and make necessary changes in QlikView script to populate same value in variable &lt;STRONG&gt;vMaxSOHDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Secondly, convert the &lt;STRONG&gt;Date&lt;/STRONG&gt; field in &lt;STRONG&gt;Where Clause &lt;/STRONG&gt;by using &lt;STRONG&gt;convert function &lt;/STRONG&gt;i.e. CONVERT(VARCHAR(10), Date,110) and pass value in &lt;SPAN style="font-size: 13.3333px;"&gt;variable &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;vMaxSOHDate&lt;/STRONG&gt; in &lt;SPAN style="font-size: 13.3333px;"&gt;same format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Rahul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336152#M840314</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-28T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336153#M840315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161560_error.png" style="height: 292px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336153#M840315</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-28T06:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336154#M840316</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;Tried with timestamp to date conversion sql max select query itself but result still retuns 0 records --&amp;nbsp; (my SQL have&lt;/P&gt;&lt;P&gt;data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we use convert function then it's changed to varchar format and returns 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336154#M840316</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-28T06:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336155#M840317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plant no issue, i tried remove plant condition and re-ran the script and getting error only. any other suggestions. Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336155#M840317</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-04-28T06:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336156#M840318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried first approach? Populating value in QlikView variable same as database value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336156#M840318</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-28T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336157#M840319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share few lines with inline data and then we will check the same, What will be the happen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 06:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336157#M840319</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-28T06:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to date conversion with Date Variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336158#M840320</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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1. Maybe you need to Floor() your result in variable?&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Ok. You Tried it already&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. Lets make date again using text:&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="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&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="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vMaxSOHDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; =&lt;/SPAN&gt; Date#(left(PEEK('MaxSOHDate'), 10), 'YYYY-MM-DD');&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3. After this interprete your new variable as text to SQL syntacsis. &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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Stock:&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;LOAD &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Barcode as soh_item,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor(Date) as soh_date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOH as soh;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM TableA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Plant = '1000' &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;and Date= '$(vMaxSOHDate)';&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 style="font-style: inherit; font-family: inherit;"&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 style="font-style: inherit; font-family: inherit;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/devil.png" /&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 style="font-style: inherit; font-family: inherit;"&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 style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-to-date-conversion-with-Date-Variable/m-p/1336158#M840320</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2017-04-28T10:59:33Z</dc:date>
    </item>
  </channel>
</rss>

