<?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: An alternative way to convert a date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491916#M183894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess with:&lt;/P&gt;&lt;P&gt;=Date(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400)), 'D/M/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the "integer" representation of the date will then be something like:&lt;/P&gt;&lt;P&gt;=Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400),'##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Oct 2013 15:36:14 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2013-10-19T15:36:14Z</dc:date>
    <item>
      <title>An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491911#M183889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;In my data set I appear to be receiving a date in an unusual format. It's numeric (e.g. 1355833734) and it turns out that it's the number of seconds since 1/1/1970.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Below is one way of converting it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue;"&gt;ConvertToLocalTime&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue;"&gt;Date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 9pt;"&gt;(&lt;SPAN class="il" style="background-color: #ffffcc;"&gt;1970&lt;/SPAN&gt;, 1, 1) + (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon;"&gt;call_date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 9pt;"&gt; / 86400)), 'Athens') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon;"&gt;CallDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Are you aware of a better way that makes it less "regional"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Alexis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 14:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491911#M183889</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491912#M183890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 14:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491912#M183890</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-19T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491913#M183891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Time(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400)), 'MM/DD/YYYY HH:MM:SS')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491913#M183891</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-19T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491914#M183892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Jagan - this second reply of yours gave me:&lt;/P&gt;&lt;P&gt;12/30/1899 12:12:54 &lt;/P&gt;&lt;P&gt;which is incorrect - it should be a date in December 2012!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to take the original long number and create:&lt;/P&gt;&lt;P&gt;a) Date in the format dd/mm/yyyy (exactly as my local settings dictate)&lt;/P&gt;&lt;P&gt;b) Time in HH:MM:SS format..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491914#M183892</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491915#M183893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400)), 'M/D/YYYY h:m:s')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491915#M183893</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-19T15:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491916#M183894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess with:&lt;/P&gt;&lt;P&gt;=Date(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400)), 'D/M/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the "integer" representation of the date will then be something like:&lt;/P&gt;&lt;P&gt;=Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400),'##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491916#M183894</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491917#M183895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you need to subtract one day. because as per your statement it starts from 1/1/1970. here you have included that day too.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Date(Num(Date(MakeDate(1969, 12, 31)) + (1355833734 / 86400)), 'D/M/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Date(Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400) - 1), 'D/M/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491917#M183895</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-10-19T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491918#M183896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The integer representation of date is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=Num(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Hope this helps you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 15:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491918#M183896</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-19T15:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491919#M183897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not correct Jagan - it gives a decimal value not integer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 16:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491919#M183897</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491920#M183898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=Floor(Date(MakeDate(1970, 1, 1)) + (1355833734 / 86400))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 16:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491920#M183898</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-19T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491921#M183899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is what I did in the end!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 16:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491921#M183899</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: An alternative way to convert a date?</title>
      <link>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491922#M183900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is correct as it was Celambarasan as it "seconds" from 1/1/1970 - I am assuming it is from 01/01/1970 00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 16:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/An-alternative-way-to-convert-a-date/m-p/491922#M183900</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-10-19T16:37:04Z</dc:date>
    </item>
  </channel>
</rss>

