<?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: Convert JSON Date to Real Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1599209#M444132</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if I'm not wrong, that value is&amp;nbsp;04/16/2015 @ 1:49pm (UTC) (from&amp;nbsp;&lt;A href="https://www.unixtimestamp.com/index.php" target="_blank"&gt;https://www.unixtimestamp.com/index.php&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;If this is correct, you can use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Timestamp(MakeDate(1970) + subfield(vDateField,'+',1)/1e3 / (24 * 60 * 60))&lt;/LI-CODE&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2019 19:36:54 GMT</pubDate>
    <dc:creator>hectormunoz</dc:creator>
    <dc:date>2019-07-04T19:36:54Z</dc:date>
    <item>
      <title>Convert JSON Date to Real Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1567562#M441832</link>
      <description>&lt;P&gt;how can I convert this json date to a real date?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;/Date(1429192143000+0000)/&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 11:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1567562#M441832</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2019-04-10T11:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON Date to Real Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1599209#M444132</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if I'm not wrong, that value is&amp;nbsp;04/16/2015 @ 1:49pm (UTC) (from&amp;nbsp;&lt;A href="https://www.unixtimestamp.com/index.php" target="_blank"&gt;https://www.unixtimestamp.com/index.php&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;If this is correct, you can use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Timestamp(MakeDate(1970) + subfield(vDateField,'+',1)/1e3 / (24 * 60 * 60))&lt;/LI-CODE&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 19:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1599209#M444132</guid>
      <dc:creator>hectormunoz</dc:creator>
      <dc:date>2019-07-04T19:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON Date to Real Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1662422#M448930</link>
      <description>&lt;P&gt;What's the "1e3" part ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qliksense is not recognizing it neither on the front or the back end.&lt;/P&gt;&lt;P&gt;Did you manage to get it to work ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 12:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1662422#M448930</guid>
      <dc:creator>georgio_hb</dc:creator>
      <dc:date>2020-01-03T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON Date to Real Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1662424#M448931</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;1e3 = 1000 cause is in scientific notation (1 x 10^3). Because Unix timestamps are in milliseconds, so milliseconds/1e3=seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 12:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1662424#M448931</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2020-01-03T12:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON Date to Real Date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1825981#M1213974</link>
      <description>&lt;P&gt;JSON does not know anything about dates. What .NET does is a non-standard hack/extension. The problem with &lt;A href="http://net-informations.com/jq/iq/jdate.htm" target="_self"&gt;dates in JSON&lt;/A&gt; and really JavaScript in general – is that there's no equivalent literal representation for dates. In JavaScript following Date constructor straight away converts the milliseconds since 1970 to Date as follows:&lt;/P&gt;&lt;P&gt;var jsonDate = new Date(1297246301973);&lt;/P&gt;&lt;P&gt;Then let's convert it to js format:&lt;/P&gt;&lt;P&gt;var date = new Date(parseInt(jsonDate.substr(6)));&lt;/P&gt;&lt;P&gt;The substr() function takes out the /Date( part, and the parseInt() function gets the integer and ignores the )/ at the end. The resulting number is passed into the Date constructor .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 05:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-JSON-Date-to-Real-Date/m-p/1825981#M1213974</guid>
      <dc:creator>fostercarly</dc:creator>
      <dc:date>2021-08-02T05:30:53Z</dc:date>
    </item>
  </channel>
</rss>

