<?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: help with AD timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-AD-timestamp/m-p/536071#M200327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this two links&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.microsoft.com/kb/555936" title="http://support.microsoft.com/kb/555936"&gt;How to convert date/time attributes in Active Directory to standard time format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx" title="https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx"&gt;https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think it should be&lt;/P&gt;&lt;P&gt;=//130048049010771403 / (8.64 * pow(10,11)) - 109205 &amp;amp; chr(10) &amp;amp; &lt;/P&gt;&lt;P&gt;date(130048049010771403 / (8.64 * pow(10,11)) - 109205, 'DD-MM-YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp; &lt;/P&gt;&lt;P&gt;date(128271382742968750 / (8.64 * pow(10,11)) - 109205, 'DD-MM-YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of the 2 expression above is (GMT)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="104710.jpg" class="jive-image jiveImage" height="113" src="https://community.qlik.com/legacyfs/online/51779_104710.jpg" style="height: 112.19960861056752px; width: 263px;" width="263" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="104710 bis.jpg" class="jive-image" height="255" src="/legacyfs/online/51780_104710 bis.jpg" style="width: 514.9038461538462px; height: 255px;" width="515" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 20:35:33 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-01-20T20:35:33Z</dc:date>
    <item>
      <title>help with AD timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-AD-timestamp/m-p/536070#M200326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i need to convert a timestamp from the active directory into a readable date/time. &lt;/P&gt;&lt;P&gt;can anyone help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value of the 'lastLogon' field is as follows...&lt;/P&gt;&lt;P&gt;130048049010771403&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to convert this to a timestamp. i have found a way of extracting the date part but not the time. &lt;/P&gt;&lt;P&gt;The date is is as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(lastLogon &amp;gt; 0, (date(left(lastLogon,11)/86400-109205,'YYYY-MM-DD')),'') as [Last Logon]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. &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, 20 Jan 2014 17:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-AD-timestamp/m-p/536070#M200326</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2014-01-20T17:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: help with AD timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-AD-timestamp/m-p/536071#M200327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this two links&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.microsoft.com/kb/555936" title="http://support.microsoft.com/kb/555936"&gt;How to convert date/time attributes in Active Directory to standard time format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx" title="https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx"&gt;https://social.technet.microsoft.com/wiki/contents/articles/12814.active-directory-lastlogontimestamp-conversion.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think it should be&lt;/P&gt;&lt;P&gt;=//130048049010771403 / (8.64 * pow(10,11)) - 109205 &amp;amp; chr(10) &amp;amp; &lt;/P&gt;&lt;P&gt;date(130048049010771403 / (8.64 * pow(10,11)) - 109205, 'DD-MM-YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp; &lt;/P&gt;&lt;P&gt;date(128271382742968750 / (8.64 * pow(10,11)) - 109205, 'DD-MM-YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of the 2 expression above is (GMT)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="104710.jpg" class="jive-image jiveImage" height="113" src="https://community.qlik.com/legacyfs/online/51779_104710.jpg" style="height: 112.19960861056752px; width: 263px;" width="263" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="104710 bis.jpg" class="jive-image" height="255" src="/legacyfs/online/51780_104710 bis.jpg" style="width: 514.9038461538462px; height: 255px;" width="515" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-AD-timestamp/m-p/536071#M200327</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-20T20:35:33Z</dc:date>
    </item>
  </channel>
</rss>

