<?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: Removing Time Stamp From Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678809#M246217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=Date(Floor(DateField()))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Dispatch Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if that work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 18:23:13 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2014-10-22T18:23:13Z</dc:date>
    <item>
      <title>Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678805#M246213</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;I am currently trying to create a calendar based on data I am loading from a database table using SQL Select.&amp;nbsp; The initial date field contains a time stamp which I want to strip out.&amp;nbsp; The reason for this is that I have found that when I export the chart information created in QlikView from the data into Excel it is displaying the date incorrectly. A 'Week End' date displayed as 07/09/2014 in QlikView is shown as 08/09/2014 in Excel. The contents of the cell are 07/09/2014&amp;nbsp; 00:00:00 but it is displayed as 08/09/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried removing the time stamp from the data loaded into QlikView with a preceding load statement but it is still exporting the date to Excel with a time stamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD [Customer]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Order No]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Date ([Dispatch Date],'DD/MM/YYYY') As [Dispatch Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,etc;&lt;/P&gt;&lt;P&gt;SQL Select *&lt;/P&gt;&lt;P&gt;From Datawarehouse.dbo.Orders&lt;/P&gt;&lt;P&gt;Where .......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempDates:&lt;/P&gt;&lt;P&gt;LOAD NUM(Min([Dispatch Date],)) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; NUM(MAX([Dispatch Date],)) as MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = peek('MinDate',0,'TempDates');&lt;/P&gt;&lt;P&gt;LET vMaxDate = peek('MaxDate',0,'TempDates');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TempDates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMinDate) + ROWNO() - 1 AS Num, &lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE($(vMinDate) + ROWNO() - 1) AS TempDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; AUTOGENERATE $(vMaxDate) - $(vMinDate) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderCalendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Usual DATE definitions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekEnd(TempDate) As WeekEnd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I tried a straight forward CONVERT statement (date format 103) within the SQL Select (having defined the fields to bring in and with no preceding load) but when exporting the data from the QlikView chart it still had a time stamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I bring in only the date part of the source data or manipulate it with in QlikView so that the TempDate &amp;amp; WeekEnd are exported without a time stamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678805#M246213</guid>
      <dc:creator />
      <dc:date>2014-10-22T14:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678806#M246214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth, Weekend returns 07/09/2014 23:59:59.999, maybe Excel is rounding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OrderCalendar try:&lt;/P&gt;&lt;P&gt;Date(Floor(WeekEnd(TempDate)),'DD/MM/YYYY')) As WeekEnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a table with the expression&lt;/P&gt;&lt;P&gt;WeekEnd(Date('07/09/2014 00:00:00', 'DD/MM/YYYY')) It exports as 08/09/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a table with the expression&lt;/P&gt;&lt;P&gt;Date(Floor(WeekEnd(Date('07/09/2014 00:00:00', 'DD/MM/YYYY'))), 'DD/MM/YYYY') it exports as 07/09/2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678806#M246214</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-10-22T14:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678807#M246215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the preceding load you can use:&lt;/P&gt;&lt;P&gt;Date(Floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Dispatch Date]&lt;/SPAN&gt;),'DD/MM/YYYY') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Dispatch Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678807#M246215</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-22T14:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678808#M246216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have a datetime&amp;nbsp; (now() in the example), use floor and frac to get the date or the time&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69504_1.png" style="width: auto; height: auto;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678808#M246216</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-22T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678809#M246217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=Date(Floor(DateField()))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Dispatch Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if that work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678809#M246217</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2014-10-22T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678810#M246218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You asked to let you know if it works.  It does but only when applied to the calendar statement DATE(Floor(WeekEnd(TempDate)),'DD/MM/YYYY')AS WeekEnd .&lt;/P&gt;&lt;P&gt;When applied to the preload it did not.  I will add this to the Community to share the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 08:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678810#M246218</guid>
      <dc:creator />
      <dc:date>2014-10-23T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Time Stamp From Date</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678811#M246219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies which all used same approach.&amp;nbsp; However, for information please note that it only worked when applied to the calendar statement, ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(WeekEnd(TempDate))''DD/MM/YYYY') As WeekEnd&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When applied to the preload and it did not make a difference to the error I was experiencing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Time-Stamp-From-Date/m-p/678811#M246219</guid>
      <dc:creator />
      <dc:date>2014-10-23T09:06:18Z</dc:date>
    </item>
  </channel>
</rss>

