<?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: No time value from a DateTime field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243187#M24748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I won't be able to test on JDBC unfortunately. So I exported my sqlite database as CSV file with DB Browser for SQLite and, as expected, everything work fine now... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody already got this issue with SQLite using ODBC ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your concern &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 09:18:49 GMT</pubDate>
    <dc:creator>gadwinjer</dc:creator>
    <dc:date>2016-11-30T09:18:49Z</dc:date>
    <item>
      <title>No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243180#M24741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I'm working on Qlik Sense 3.1 RC2 (and my bug also occured on 3.1 RC1). I worked on some other versions and didn't have this bug :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I load my data from a SQLite file (using ODBC) or from a CSV file, I can not extract time from my datetime fields (format : MM/dd/yyyy hh:mm:ss).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried these in the loader : &lt;BR /&gt;- right(field, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; as fieldname =&amp;gt; only date number value is retrieve (42000...)&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- date(field, 'hh:mm:ss') =&amp;gt; 00:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never had this kind of bug. I tried to reinstall (that's why I tested it on RC1 and RC2 of 3.1 version) and it didn't change anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a bug or does something has changed ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 09:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243180#M24741</guid>
      <dc:creator>gadwinjer</dc:creator>
      <dc:date>2016-11-29T09:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243181#M24742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try this in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(YourDateField,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; MM/dd/yyyy hh:mm:ss'),'hh:mm:ss') as new date &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243181#M24742</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-11-29T10:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243182#M24743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use something like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(TimeStamp#(YourDateTimeField,'DD/MM/YYYY hh:mm:ss'))) as Date,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Time(Frac(TimeStamp#(YourDateTimeField,'DD/MM/YYYY hh:mm:ss'))) as Time&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243182#M24743</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-29T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243183#M24744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using a csv file then use the date#, time# and/or timestamp# functions to convert strings into date, time or timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using an SQLite datebase then you'll be working with numbers, not strings. Using string functions like right on a number can give funny results if you don't know what numbers you're dealing with. Time(field,'hh:mm:ss') should show you the time of the datetime value. Time(Frac(field),'hh:mm:ss') will first remove the date part and only work with the time part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243183#M24744</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-29T10:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243184#M24745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hello, thank you to try to help me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried all solutions you all told with no success, I only get null values from the time field. (or DD/MM/YYYY 00:00:00 from the date).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From the CSV, I'm confused because it wasn't a bug, the extract we gave me only had date value from the datetime field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From the SQLite file... I don't know what to do. Here is an example of value from this field : 2016-11-27 01:00:13 . none of your solutions bring me more that 00:00:00 or null value...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I will edit a csv file with a datetime value structured like the sqlite field to see if I can do something with it... &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243184#M24745</guid>
      <dc:creator>gadwinjer</dc:creator>
      <dc:date>2016-11-29T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243185#M24746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Date(Floor(TimeStamp#(YourDateTimeField,'YYYY-MM-DD hh:mm:ss'))) as Date,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Time(Frac(TimeStamp#(YourDateTimeField,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;YYYY-MM-DD&lt;/SPAN&gt; hh:mm:ss'))) as Time&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243185#M24746</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-29T10:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243186#M24747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank you but I already tried your answer... &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor(TimeStamp#(SUBMISSIONDATE,'YYYY-MM-DD hh:mm:ss'))) as SUBMISSIONDATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Time(Frac(TimeStamp#(SUBMISSIONDATE,'YYYY-MM-DD hh:mm:ss'))) as SUBMISSIONTIME,&lt;BR /&gt;And from both, I retrieve null value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without surprise, everything work fine with the CSV file. I think my problem comes from the odbc driver... I will try with JDBC and the qlik JDBC connector.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243186#M24747</guid>
      <dc:creator>gadwinjer</dc:creator>
      <dc:date>2016-11-29T10:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243187#M24748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I won't be able to test on JDBC unfortunately. So I exported my sqlite database as CSV file with DB Browser for SQLite and, as expected, everything work fine now... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody already got this issue with SQLite using ODBC ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your concern &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243187#M24748</guid>
      <dc:creator>gadwinjer</dc:creator>
      <dc:date>2016-11-30T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: No time value from a DateTime field</title>
      <link>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243188#M24749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I solved my problem by spliting the date in the SQL select statement :&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(myDate, 0, 11) as &lt;SPAN style="font-size: 13.3333px;"&gt;myDate&lt;/SPAN&gt;, // yyyy-MM-dd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(&lt;SPAN style="font-size: 13.3333px;"&gt;myDate&lt;/SPAN&gt;, 12,19) as myTime, // hh:mm:ss&lt;BR /&gt;FROM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myTable&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;myTime contains the correct value of the time of my SQLite date field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 14:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/No-time-value-from-a-DateTime-field/m-p/1243188#M24749</guid>
      <dc:creator>gadwinjer</dc:creator>
      <dc:date>2016-11-30T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

