<?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: Date is not appearing as date field in datepicker in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1826153#M67934</link>
    <description>&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Date(Floor(enddate)) as EndDate was the solution&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 16:57:00 GMT</pubDate>
    <dc:creator>Sayjir</dc:creator>
    <dc:date>2021-08-02T16:57:00Z</dc:date>
    <item>
      <title>Date is not appearing as date field in datepicker</title>
      <link>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1824187#M67642</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;i want to use the datepicker, but nothing is appearing as datefield.&amp;nbsp;&lt;/P&gt;&lt;P&gt;start and endate are saved like this in the database:&amp;nbsp;2021-07-13 11:03:58&lt;/P&gt;&lt;P&gt;I'm loading my data like this in Qlik:&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD id,&lt;BR /&gt;username,&lt;BR /&gt;Date(enddate) as EndDate,&lt;BR /&gt;Date(startdate) As StartData,&lt;BR /&gt;interval(enddate-startdate) as Duration;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[runs]:&lt;BR /&gt;SELECT id,&lt;BR /&gt;startdate,&lt;BR /&gt;enddate,&lt;BR /&gt;username,&lt;BR /&gt;FROM `database`.runs;&lt;/P&gt;&lt;P&gt;Unfortunately there is no value to select in the datepicker. i guess the startdate and endate are not recognized as date.&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 17:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1824187#M67642</guid>
      <dc:creator>Sayjir</dc:creator>
      <dc:date>2021-07-23T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date is not appearing as date field in datepicker</title>
      <link>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1824249#M67650</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you will want to remove the time portion when loading and keep only the date portion. Do that using Floor().&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Date(Floor(enddate)) as EndDate,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Make sure your dates are being interpreted properly as dates.&amp;nbsp; Put the field in a filter box with the expression&lt;BR /&gt;=Num(EndDate)&lt;/P&gt;&lt;P&gt;It should show as a number like 44321. If not, you will need to use an interpretation# function when loading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Date(Floor(TimeStamp#(enddate, 'YYYY-MM-DD hh:mm:ss'))) as EndDate,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If EndDate still does not appear in the DatePicker, check the tags assigned to the field. You can see the tags in the data model viewer Preview area after selecting the field. It's the "$date" tag that causes the field to appear in the DatePicker dropdown.&amp;nbsp; I have seen recent cases where the $date is not getting assigned. The workaround is to force the tag in your script. Add this to the end of the script.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Tag Field EndDate with '$date';&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 21:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1824249#M67650</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-07-23T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date is not appearing as date field in datepicker</title>
      <link>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1826153#M67934</link>
      <description>&lt;P&gt;Thanks a lot!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Date(Floor(enddate)) as EndDate was the solution&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 16:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-is-not-appearing-as-date-field-in-datepicker/m-p/1826153#M67934</guid>
      <dc:creator>Sayjir</dc:creator>
      <dc:date>2021-08-02T16:57:00Z</dc:date>
    </item>
  </channel>
</rss>

