<?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 to date the lastlogontimestamp from the active directory user properties in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220469#M73378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates in QV are stored as integers&lt;/P&gt;&lt;P&gt;You can see this by creating a field with value =num(today())&lt;/P&gt;&lt;P&gt;Whole integers being days&lt;/P&gt;&lt;P&gt;Partial days are represented by dividing up a day&lt;/P&gt;&lt;P&gt;I believe 1 hour would be .04166666...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;width:195pt;" width="260"&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;width:195pt;" width="260"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 21:08:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-10T21:08:20Z</dc:date>
    <item>
      <title>convert to date the lastlogontimestamp from the active directory user properties</title>
      <link>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220468#M73377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this field is the number of 100 nano seconds that passed since 1.1.1601 00:00 to last login of the user (this is of course a very great number) how do i convert it to date using qlikview script on reload time&lt;/P&gt;&lt;DIV id="divCleekiAttrib" style="display: none;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 20:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220468#M73377</guid>
      <dc:creator>boaz_shatz</dc:creator>
      <dc:date>2010-12-10T20:33:56Z</dc:date>
    </item>
    <item>
      <title>convert to date the lastlogontimestamp from the active directory user properties</title>
      <link>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220469#M73378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates in QV are stored as integers&lt;/P&gt;&lt;P&gt;You can see this by creating a field with value =num(today())&lt;/P&gt;&lt;P&gt;Whole integers being days&lt;/P&gt;&lt;P&gt;Partial days are represented by dividing up a day&lt;/P&gt;&lt;P&gt;I believe 1 hour would be .04166666...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;width:195pt;" width="260"&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD align="right" height="20" style="height:15pt;width:195pt;" width="260"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 21:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220469#M73378</guid>
      <dc:creator />
      <dc:date>2010-12-10T21:08:20Z</dc:date>
    </item>
    <item>
      <title>convert to date the lastlogontimestamp from the active directory user properties</title>
      <link>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220470#M73379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the conversion formula I suggest is : left(lastLogin,11)/86400-109207 as DLastLogin,&lt;/P&gt;&lt;P&gt;left(lastlogin,11) to get the lastlogin in seconds&lt;/P&gt;&lt;P&gt;/86400 to convert to day&lt;/P&gt;&lt;P&gt;- 109207 : Nb of day between time origins&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 22:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-to-date-the-lastlogontimestamp-from-the-active-directory/m-p/220470#M73379</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-12-10T22:09:07Z</dc:date>
    </item>
  </channel>
</rss>

