<?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 decimal number to date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202154#M59965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I am new (since today) and am saying hello to you all!&lt;/P&gt;&lt;P&gt;I have an application that sees the decimal number decimal number 1 as 31 semptember 1971. After that it is incrementing daily with ++. So today is 14209. How do I convert this to normal date notation ( ex. 25-11-2010)&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2010 14:37:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-25T14:37:52Z</dc:date>
    <item>
      <title>Convert decimal number to date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202154#M59965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I am new (since today) and am saying hello to you all!&lt;/P&gt;&lt;P&gt;I have an application that sees the decimal number decimal number 1 as 31 semptember 1971. After that it is incrementing daily with ++. So today is 14209. How do I convert this to normal date notation ( ex. 25-11-2010)&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 14:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202154#M59965</guid>
      <dc:creator />
      <dc:date>2010-11-25T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Convert decimal number to date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202155#M59966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;if I got you right, your source system counts the days starting in Sep1971. QV does it in a similar way. Today in QV is Number 40507. You can proof this while creating a text object with&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=num(today())&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;. Without the num()-function today() returns the date in your date-format. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So with this in mind it should be easy for you to add the necessary offset while loading to get the according dates. Don't forget to tell QV to convert the incoming numbers to be a date similar to this&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load ... date(sourcedate + offset) as MyFirstQVDate;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 14:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202155#M59966</guid>
      <dc:creator />
      <dc:date>2010-11-25T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Convert decimal number to date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202156#M59967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying this quick. But I don't quite understand.&lt;/P&gt;&lt;P&gt;I have the next in the editor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"sched_offb_dep_date"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;as&lt;/B&gt; StartDate,&lt;/P&gt;&lt;P&gt;"sched_offb_dep_time"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;as&lt;/B&gt; StartTime,&lt;/P&gt;&lt;P&gt;"sched_onbl_arr_date"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;as&lt;/B&gt; EndDate,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"sched_onbl_arr_time"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;as&lt;/B&gt; EndTime;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; sched_offb_dep_date, sched_offb_dep_time, sched_onbl_arr_date, sched_onbl_arr_time&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prod.dbo."ac_util_netl_two_hist";&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;where sched_onbl_arr_time contains the date issue. What do I add so it is not displayed in 14209 but in 25-11-2010.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 15:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202156#M59967</guid>
      <dc:creator />
      <dc:date>2010-11-25T15:08:53Z</dc:date>
    </item>
    <item>
      <title>Convert decimal number to date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202157#M59968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;date("sched_offb_dep_date" + 26298) as StartDate,&lt;BR /&gt;"sched_offb_dep_time" as StartTime,&lt;BR /&gt;date("sched_onbl_arr_date" +26298) as EndDate,&lt;BR /&gt;"sched_onbl_arr_time" as EndTime;&lt;BR /&gt;. . . . .&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hint: The offset is 26298 --&amp;gt; (QV today - sourcesystem today) = (40507 -14209) . The date() converts numbers into dates.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 15:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202157#M59968</guid>
      <dc:creator />
      <dc:date>2010-11-25T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Convert decimal number to date</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202158#M59969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your explanation, It was very clear now.&lt;/P&gt;&lt;P&gt;I got it to work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 16:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-decimal-number-to-date/m-p/202158#M59969</guid>
      <dc:creator />
      <dc:date>2010-11-25T16:12:59Z</dc:date>
    </item>
  </channel>
</rss>

