<?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 Timestamp date extraction and formatting in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Timestamp-date-extraction-and-formatting/m-p/61079#M4015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now scoured the forums for a week and tried everything I can find to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While my issue is more complex (multiple date fields, linking to common data, etc), let's start small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date fields are in timestamp format.&amp;nbsp; The timestamps are important to the visualizations I will display.&lt;/P&gt;&lt;P&gt;Format:&amp;nbsp; YYYY-MM-DD hh:mm:ss (2017-10-04 05:38:00)&amp;nbsp; = Start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My DateFormat = &lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the simplest things I'd like to be able to do is to extract the date into its own field.&lt;/P&gt;&lt;P&gt;The closest thing I've found that *kind of* works is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(Start)) as StartDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement would be to be able to select a date and see all the timestamps / ids associated with that date.&lt;/P&gt;&lt;P&gt;I have yet to be successful in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example, let's say I have an id coming in every hour.&amp;nbsp; For any given day, I'd have 24 timestamped ids in my data.&lt;/P&gt;&lt;P&gt;I should be able to select StartDate (even from a filter) and see no more, no less than 24 IDs and timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;Date(Floor(Timestamp#(Start, 'YYYY-MM-DD hh:mm:ss')), 'YYYY-MM-DD') as StartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (this is DIRECTLY from the QlikVIEW documentation, though I'm working in Qlik Sense)&lt;/P&gt;&lt;P&gt;Date(Start, 'YYYY-MM-DD hh:mm:ss') as StartDate&lt;/P&gt;&lt;P&gt;Date(Date#(Start, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss') as StartDate&lt;/P&gt;&lt;P&gt;Date(Left(Start, 10), 'YYYY-MM-DD) as StartDate&lt;/P&gt;&lt;P&gt;Various combinations on the above.&lt;/P&gt;&lt;P&gt;Some of them don't populate anything, some do, but none of them produce the intended result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, when I get a date and try the min(StartDate) function within a variable in the visualization (NOT load script) it doesn't give the correct date, while a simple KPI measure min(StartDate) does - which tells me I have formatting issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, it's very important that the date links/relates to all of the IDs/timestamps which occurred on that date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please?&amp;nbsp; Ready, GO!&amp;nbsp; (and thank you!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 21:48:13 GMT</pubDate>
    <dc:creator>joey_lutes</dc:creator>
    <dc:date>2018-02-06T21:48:13Z</dc:date>
    <item>
      <title>Timestamp date extraction and formatting</title>
      <link>https://community.qlik.com/t5/App-Development/Timestamp-date-extraction-and-formatting/m-p/61079#M4015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now scoured the forums for a week and tried everything I can find to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While my issue is more complex (multiple date fields, linking to common data, etc), let's start small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date fields are in timestamp format.&amp;nbsp; The timestamps are important to the visualizations I will display.&lt;/P&gt;&lt;P&gt;Format:&amp;nbsp; YYYY-MM-DD hh:mm:ss (2017-10-04 05:38:00)&amp;nbsp; = Start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My DateFormat = &lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the simplest things I'd like to be able to do is to extract the date into its own field.&lt;/P&gt;&lt;P&gt;The closest thing I've found that *kind of* works is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(Start)) as StartDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement would be to be able to select a date and see all the timestamps / ids associated with that date.&lt;/P&gt;&lt;P&gt;I have yet to be successful in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example, let's say I have an id coming in every hour.&amp;nbsp; For any given day, I'd have 24 timestamped ids in my data.&lt;/P&gt;&lt;P&gt;I should be able to select StartDate (even from a filter) and see no more, no less than 24 IDs and timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;Date(Floor(Timestamp#(Start, 'YYYY-MM-DD hh:mm:ss')), 'YYYY-MM-DD') as StartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (this is DIRECTLY from the QlikVIEW documentation, though I'm working in Qlik Sense)&lt;/P&gt;&lt;P&gt;Date(Start, 'YYYY-MM-DD hh:mm:ss') as StartDate&lt;/P&gt;&lt;P&gt;Date(Date#(Start, 'YYYY-MM-DD hh:mm:ss'), 'YYYY-MM-DD hh:mm:ss') as StartDate&lt;/P&gt;&lt;P&gt;Date(Left(Start, 10), 'YYYY-MM-DD) as StartDate&lt;/P&gt;&lt;P&gt;Various combinations on the above.&lt;/P&gt;&lt;P&gt;Some of them don't populate anything, some do, but none of them produce the intended result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, when I get a date and try the min(StartDate) function within a variable in the visualization (NOT load script) it doesn't give the correct date, while a simple KPI measure min(StartDate) does - which tells me I have formatting issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, it's very important that the date links/relates to all of the IDs/timestamps which occurred on that date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please?&amp;nbsp; Ready, GO!&amp;nbsp; (and thank you!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 21:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Timestamp-date-extraction-and-formatting/m-p/61079#M4015</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2018-02-06T21:48:13Z</dc:date>
    </item>
  </channel>
</rss>

