<?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 Issues converting a Timestamp into Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397155#M147956</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;I am loading from Salesforce and I´d like to convert a timestamp variable (dd.mm.yyyy hh:mm.ss) into a Dateformat (dd.mm.yyyy).&amp;nbsp; I´ve tried several ways but nothing groups by day (simply cuts the end of the timestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 15:27:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-24T15:27:47Z</dc:date>
    <item>
      <title>Issues converting a Timestamp into Date</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397155#M147956</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;I am loading from Salesforce and I´d like to convert a timestamp variable (dd.mm.yyyy hh:mm.ss) into a Dateformat (dd.mm.yyyy).&amp;nbsp; I´ve tried several ways but nothing groups by day (simply cuts the end of the timestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397155#M147956</guid>
      <dc:creator />
      <dc:date>2013-04-24T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues converting a Timestamp into Date</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397156#M147957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have to use the floor function to completely remove the time part of the timestamp: floor(MyTimestamp) as MyDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397156#M147957</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-24T16:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issues converting a Timestamp into Date</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397157#M147958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert for answering!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve tried as you suggested but unfortunately it doesn´t work. I get the following error message:&lt;/P&gt;&lt;P&gt; "floor(CreatedDate) as MyDate, ERROR at Row:23:Column:19 unexpected token: as". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check what I´am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//SALESFORCE DATA&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;CUSTOM&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;CONNECT&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TO&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"Provider=SalesForceDLL.dll;F27;XUserId=removed;XPassword=removed;"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreatedDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;floor&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreatedDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; CreatedDate,&lt;BR /&gt; floor(CreatedDate) as MyDate,&lt;BR /&gt; &lt;BR /&gt; from case&lt;BR /&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 12:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397157#M147958</guid>
      <dc:creator />
      <dc:date>2013-04-25T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issues converting a Timestamp into Date</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397158#M147959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To begin with Salesforce doesn't seem to understand the AS keyword. That's what it's complaining about. Very likely the Salesforce database also won't understand Qlikview functions like floor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something to keep in mind is that Qlikview sends sql statements (Select ... from ... etc) directly to the database. Qlikview itself doesn't parse the sql statement. The sql statement should be in the dialect the database understands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, use Qlikview functions in the preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;CUSTOM&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;CONNECT&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;TO&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"Provider=SalesForceDLL.dll;F27;XUserId=removed;XPassword=removed;"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Table1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG style="font-size: 12px; background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;CreatedDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;floor&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;CreatedDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;MyDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt;&lt;STRONG style="color: #737373; font-family: Arial;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;SELECT &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;CreatedDate from case;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 12:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397158#M147959</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-25T12:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issues converting a Timestamp into Date</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397159#M147960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, it works - thanks a lot !! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. could you also take a look into this one: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/339436#339436" title="http://community.qlik.com/message/339436#339436"&gt;http://community.qlik.com/message/339436#339436&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-converting-a-Timestamp-into-Date/m-p/397159#M147960</guid>
      <dc:creator />
      <dc:date>2013-04-25T13:21:42Z</dc:date>
    </item>
  </channel>
</rss>

