<?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 Removing Time from timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262556#M1191628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need a clarification about text - Date format. I have extracted data from csv file with a field called record_date which has the timestamp values in text format. Take a look at the below pic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Untitled.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5708_Untitled.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove the time from record_date Please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 04:37:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-07T04:37:53Z</dc:date>
    <item>
      <title>Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262556#M1191628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need a clarification about text - Date format. I have extracted data from csv file with a field called record_date which has the timestamp values in text format. Take a look at the below pic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Untitled.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5708_Untitled.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove the time from record_date Please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 04:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262556#M1191628</guid>
      <dc:creator />
      <dc:date>2011-07-07T04:37:53Z</dc:date>
    </item>
    <item>
      <title>Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262557#M1191630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to convert from text/string into date format, you can use the DATE# function, which I think will result in the time data to be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case, I think it should be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE#( record_date, 'M/D/YYYY HH:MM' ) AS date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't actually tested if you can force DATE# on a timestamp string, but if QlikView can't, then you can just use TIMESTAMP# combined with DATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE( TIMESTAMP#( record_date, 'M/D/YYYY HH:MM' ), 'M/D/YYYY' ) AS date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you can just use only TIMESTAMP# and set your default Numbering Format of that field to just show the date (via Document Settings or individually on each object/chart you're using that field in).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Kennie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 05:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262557#M1191630</guid>
      <dc:creator />
      <dc:date>2011-07-07T05:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262558#M1191632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the format string, you need hh:mm instead of HH:MM.&amp;nbsp; MM stands for the month, not the minute.&amp;nbsp; Lower case gives you the minute.&amp;nbsp; When reading in a timestamp, use the timestamp# function.&amp;nbsp; You could use string functions to strip off the time, then use the date# function, but I'd just use the timestamp# function.&amp;nbsp; However, you can't just wrap that in a date() function.&amp;nbsp; Date() is a FORMATTING function, and will not change the underlying data, so you will still have a timestamp including the time, even if it displays as a date.&amp;nbsp; Use floor() or daystart() to remove the fractional part.&amp;nbsp; Or if by "remove the time" your meant "create a time field", that's basically the same thing, but with time() and frac().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,date(floor(timestamp#(record_date,'M/D/YYYY hh:mm'))) as record_date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,time(frac (timestamp#(record_date,'M/D/YYYY hh:mm'))) as record_time&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 00:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262558#M1191632</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-08T00:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262559#M1191634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, thanks for correcting me for the time format string as well as clearing up the date() part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 02:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262559#M1191634</guid>
      <dc:creator />
      <dc:date>2011-07-08T02:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262560#M1191637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finally, I got it. Thanks. But Its not working with floor function.when I omitted it, I got the correct values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 02:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262560#M1191637</guid>
      <dc:creator />
      <dc:date>2011-07-08T02:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262561#M1191639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kennie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks to you also. I got an initial idea from u. but some of the values were null because of that HH:MM. I have corrected with help of John. Thanks to you Kennie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 02:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262561#M1191639</guid>
      <dc:creator />
      <dc:date>2011-07-08T02:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262562#M1191642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry to bring up a 'dead' topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also dealing with a timestamp field, which I need to split in date and time, so to check the time against a cutoff time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was applying the formulas suggested by Witherspoon and crushing my head because I could not get any data out of it.&lt;/P&gt;&lt;P&gt;I thought the problem was in the source data, cos I could not really get a hang if it was DD-MM-YYYY, DD/MM/YY etc.etc. (it changed depending on the programs I used to open the dataset)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I tried these formulas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &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;numDateFLOOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &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;numDateFRAC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was 'surpised' it worked like a charm on the first try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp; I could directly compare them with the cutoff time, mapped like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;'15:00' &lt;SPAN style="font-size: 8pt;"&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;Cutoff &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just posting it here in case someone is facing the same troubles! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 09:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262562#M1191642</guid>
      <dc:creator />
      <dc:date>2013-12-23T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time from timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262563#M1191645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly what I have been looking for, thank you!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-from-timestamp/m-p/262563#M1191645</guid>
      <dc:creator />
      <dc:date>2014-04-15T15:27:28Z</dc:date>
    </item>
  </channel>
</rss>

