<?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: grouping date only not the time element in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903568#M658535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the floor function to cut of the time part from a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(floor(MyDateTime),&lt;STRONG&gt;'DD-MM-YYYY'&lt;/STRONG&gt;) as MyDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your datetime (timestamp) field doesn't contain numeric values but text values you can use the date# function to turn the text values into dates. You'll still should use the floor function. Date(floor(date#(MyField,&lt;EM&gt;&lt;STRONG&gt; 'YYYYMMDD hhmmss'&lt;/STRONG&gt;&lt;/EM&gt;)),&lt;EM&gt;&lt;STRONG&gt;'DD-MM-YYYY'&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, all the date and timestamp formats above are&lt;EM&gt; just examples&lt;/EM&gt;. Use the formats you actually need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 14:30:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-04-24T14:30:45Z</dc:date>
    <item>
      <title>grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903567#M658534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can one group dates&amp;nbsp; in scripting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is I have several dates including the time, but I only want to show data for each day and ignore the time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 14:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903567#M658534</guid>
      <dc:creator>qlikmpate0</dc:creator>
      <dc:date>2015-04-24T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903568#M658535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the floor function to cut of the time part from a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(floor(MyDateTime),&lt;STRONG&gt;'DD-MM-YYYY'&lt;/STRONG&gt;) as MyDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your datetime (timestamp) field doesn't contain numeric values but text values you can use the date# function to turn the text values into dates. You'll still should use the floor function. Date(floor(date#(MyField,&lt;EM&gt;&lt;STRONG&gt; 'YYYYMMDD hhmmss'&lt;/STRONG&gt;&lt;/EM&gt;)),&lt;EM&gt;&lt;STRONG&gt;'DD-MM-YYYY'&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, all the date and timestamp formats above are&lt;EM&gt; just examples&lt;/EM&gt;. Use the formats you actually need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 14:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903568#M658535</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-24T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903569#M658536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Mina,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;you can strip out the hh:mm:ss etc, and just keep the date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;an example of this is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;FixDate:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;inline&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; TimeStamp&lt;BR /&gt; 24/02/1958 11:12:32&lt;BR /&gt; ]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; FinalDate:&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Load&lt;/STRONG&gt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;TimeStamp&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Floor&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;TimeStamp&lt;/SPAN&gt;)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NewDate&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; FixDate; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives a new date of 24/02/1958 from &lt;SPAN style="color: #800000; font-family: Courier New;"&gt;24/02/1958 11:12:32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 14:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903569#M658536</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-24T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903570#M658537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903570#M658537</guid>
      <dc:creator>qlikmpate0</dc:creator>
      <dc:date>2015-04-24T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903571#M658538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903571#M658538</guid>
      <dc:creator>qlikmpate0</dc:creator>
      <dc:date>2015-04-24T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: grouping date only not the time element</title>
      <link>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903572#M658539</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;you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14299206035388221 jive_text_macro" jivemacro_uid="_14299206035388221"&gt;
&lt;P&gt;DayName(YourTimestampField)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to purge the time part from the timestamp and format as a date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 00:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/grouping-date-only-not-the-time-element/m-p/903572#M658539</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-04-25T00:10:13Z</dc:date>
    </item>
  </channel>
</rss>

