<?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() Function with Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146988#M25459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;That could be cool, to see which times of day people join the site. Thanks for your input as well! &lt;IMG alt="QlikView Icon" src="http://community.qlik.com/emoticons/qball.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 06:32:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-17T06:32:33Z</dc:date>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146984#M25455</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;I'm using QlikView 9.0 to do a breakdown of the membership on this site, and I've run into a little bit of a snag using the date() function. The site logs new users' join date by timestamp, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;2009-06-11 18:42:48&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I don't particularly care about the time, but I want to see how many folks joined on each day, so I wrapped that field in a date() function to strip away the time.&lt;/P&gt;&lt;P&gt;The problem is, all of the dates left behind are showing up as individual values, not the same value (i.e, 4/15/2009 shows up multiple times instead of once in the list box):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-276_sourceID:276" /&gt;&lt;/P&gt;&lt;P&gt;I imagine it's doing that because of the time that's omitted; since they are different, they are being added as different values.&lt;/P&gt;&lt;P&gt;Can someone please help me with the syntax needed to make these values the same, at least in QlikView? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 04:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146984#M25455</guid>
      <dc:creator />
      <dc:date>2009-06-17T04:47:59Z</dc:date>
    </item>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146985#M25456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;date() is a display formatting function, and does not change the underlying value. The fractional part, representing the time, is still there in each value.&lt;/P&gt;&lt;P&gt;The typical way to get just the date from a timestamp is the floor() function. e.g floor(mytimestamp) as mydate.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 05:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146985#M25456</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-06-17T05:06:53Z</dc:date>
    </item>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146986#M25457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, as always, you populate the forum with your wisdom. it worked perfectly! Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 05:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146986#M25457</guid>
      <dc:creator />
      <dc:date>2009-06-17T05:18:12Z</dc:date>
    </item>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146987#M25458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And similarly, use frac(mytimestamp) to get just the time. Floor(x)+frac(x) = x. I figure many people would want to extract both a date and time from a timestamp, even if you don't need it in this specific case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 06:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146987#M25458</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-17T06:30:50Z</dc:date>
    </item>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146988#M25459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;That could be cool, to see which times of day people join the site. Thanks for your input as well! &lt;IMG alt="QlikView Icon" src="http://community.qlik.com/emoticons/qball.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 06:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146988#M25459</guid>
      <dc:creator />
      <dc:date>2009-06-17T06:32:33Z</dc:date>
    </item>
    <item>
      <title>date() Function with Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146989#M25460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;BR /&gt;It's been a sort of a standard in our company to use &lt;B&gt;date(floor(Field))&lt;/B&gt; in the script. Besides preventing the problem like the one you had, it also makes the QV application smaller because of the small number of distinct values in the date field. Cant't be more than 366 per year. With the fractional part, virualy any record is distinct. Not good if you have millions of records.&lt;BR /&gt;Not the case with QlikCommunity users yet. But you can see the difference in the file size, I'm sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 07:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-Function-with-Timestamp/m-p/146989#M25460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-17T07:43:30Z</dc:date>
    </item>
  </channel>
</rss>

