<?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 CONVERT INTEGER8 VALUE TO DATE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584502#M682743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to interrogate Active Directory for the lastLogon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm pulling the data through, but it's converting it to the date / datetime I'm after help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there's a few methods out there using SQL or Powershell through calculation, but trying those calculations in qlikview doesn't give the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas / thoughts / suggestions gleefully welcomed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 17:08:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-17T17:08:12Z</dc:date>
    <item>
      <title>CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584502#M682743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to interrogate Active Directory for the lastLogon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm pulling the data through, but it's converting it to the date / datetime I'm after help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there's a few methods out there using SQL or Powershell through calculation, but trying those calculations in qlikview doesn't give the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas / thoughts / suggestions gleefully welcomed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 17:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584502#M682743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-17T17:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584503#M682744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to msdn.microsoft.com/en-us/library/ms676823(VS.85).aspx it's stored as a large integer that represents the number of 100-nanosecond intervals since January 1, 1601 (UTC). So divide by 10.000*3.600*24 = 864.000.000 and then subtract the number of days between January 1, 1601 and December 30, 1899... = 109.205.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 17:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584503#M682744</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-17T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584504#M682745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding Gysbert.&lt;/P&gt;&lt;P&gt;Unfortunately though your solution is not working in my instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example output I've got is my lastLogon is coming back as 130359240658783000 and following your steps, doesn't get me back to number that I can interpret as date / datetime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584504#M682745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-18T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584505#M682746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that should be divide by 864,000,000,000 for 100 ns intervals (10,000,000 * 3,600 etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that divisor, I get to day # 41673.75 which is 3 Feb 2014 18:00:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584505#M682746</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-18T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584506#M682747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan is correct. I was off by a factor 1000 (overlooking the microseconds). The result then matches the result of &lt;EM&gt;w32tm.exe /ntte 130359240658783000.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584506#M682747</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-18T09:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584507#M682748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant. Thanks to you both, that gets me to an answer, but is there any reason why Qlikview, (version 11.2) doesn't seem to handle the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584507#M682748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-18T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584508#M682749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what expression you're talking about. I'm guessing that you're trying to get Qlikview to handle a number with more than 14 digits. Qlikview supports only 64-bit IEEE floating numbers. To work around that you can do the calculation in the SQL statement you use to get the data from Active Directory. Or you could cut off the last 7 digits first, then divide by 86.400 and then subtract 109.205: =timestamp(left('130359240658783000',11)/86400 - 109205)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584508#M682749</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-18T10:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT INTEGER8 VALUE TO DATE</title>
      <link>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584509#M682750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CONVERT-INTEGER8-VALUE-TO-DATE/m-p/584509#M682750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-18T10:58:57Z</dc:date>
    </item>
  </channel>
</rss>

