<?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 Cannot convert timestamps to datetime in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2126997#M91703</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a column in my data with what looks like timestamps in, but I'm struggling to convert these into meaningful date times in the load editor. The data before the . is always 5 digits long but after the . there's a mixture of different length values - Could this be causing the issue?&lt;/P&gt;
&lt;P&gt;Some sample values include...&lt;/P&gt;
&lt;P&gt;45208.389583333&lt;BR /&gt;45208.41875&lt;BR /&gt;45208.640972222&lt;BR /&gt;45205.33125&lt;BR /&gt;45205.5&lt;BR /&gt;45205.448611111&lt;/P&gt;
&lt;P&gt;If I add a duplicate column in the chart table with Timestamp(FIELD_NAME) the value converts correctly but if I try to do this in the load editor the value always stays as the timestamp value.&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 10:48:11 GMT</pubDate>
    <dc:creator>jay_pee</dc:creator>
    <dc:date>2023-10-10T10:48:11Z</dc:date>
    <item>
      <title>Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2126997#M91703</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a column in my data with what looks like timestamps in, but I'm struggling to convert these into meaningful date times in the load editor. The data before the . is always 5 digits long but after the . there's a mixture of different length values - Could this be causing the issue?&lt;/P&gt;
&lt;P&gt;Some sample values include...&lt;/P&gt;
&lt;P&gt;45208.389583333&lt;BR /&gt;45208.41875&lt;BR /&gt;45208.640972222&lt;BR /&gt;45205.33125&lt;BR /&gt;45205.5&lt;BR /&gt;45205.448611111&lt;/P&gt;
&lt;P&gt;If I add a duplicate column in the chart table with Timestamp(FIELD_NAME) the value converts correctly but if I try to do this in the load editor the value always stays as the timestamp value.&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 10:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2126997#M91703</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2023-10-10T10:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127002#M91705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you tried setting the format in script?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Timestamp( A,'YYYY-MM-DD hh.mm')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 11:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127002#M91705</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2023-10-10T11:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127081#M91714</link>
      <description>&lt;P&gt;LOAD *,Date(dt) as date,time(dt) as time,Timestamp(dt) as ts;&lt;BR /&gt;load * Inline [&lt;BR /&gt;dt&lt;BR /&gt;45208.389583333&lt;BR /&gt;45208.41875&lt;BR /&gt;45208.640972222&lt;BR /&gt;45205.33125&lt;BR /&gt;45205.5&lt;BR /&gt;45205.448611111&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127081#M91714</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2023-10-10T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127357#M91731</link>
      <description>&lt;P&gt;Thank you everyone for your replies, I've discovered why this particular column wasn't converting correctly.&lt;/P&gt;
&lt;P&gt;The table in question is created from two separate resident loads&amp;nbsp; - The first resident load (Which sets the field order and the column types for the new table I think) had the value set as Null() as this source doesn't have any timestamp values, and the second resident load contains all the timestamp values I listed above. So the column type was probably set as string because of my initial Null() value.&lt;/P&gt;
&lt;P&gt;I've now set the Null() field value to be Timestamp(Null()) instead and the conversion is now working as expected.&lt;/P&gt;
&lt;P&gt;Took a little while to figure out but got there in the end - Every day's a school day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 08:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2127357#M91731</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2023-10-11T08:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2513384#M105324</link>
      <description>&lt;P&gt;Thank you for sharing your solution. I was doing a resident concatenation of three tables and one of them was bringing the date in as a string. I group at the end and was applying date functions that were being ignored and I couldn't figure out why. Now I can stop beating my head against a wall!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 15:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2513384#M105324</guid>
      <dc:creator>acorneailAN</dc:creator>
      <dc:date>2025-04-07T15:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert timestamps to datetime</title>
      <link>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2515076#M105619</link>
      <description>&lt;P&gt;Great stuff &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/213983"&gt;@acorneailAN&lt;/a&gt;&amp;nbsp;, glad you got the issue sorted&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cannot-convert-timestamps-to-datetime/m-p/2515076#M105619</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2025-04-22T09:17:12Z</dc:date>
    </item>
  </channel>
</rss>

