<?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: Julian Date conversion in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002318#M649351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working and&amp;nbsp; is really helpful.&lt;/P&gt;&lt;P&gt;Thank you very much for the quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 11:16:39 GMT</pubDate>
    <dc:creator>sudhakar_budde</dc:creator>
    <dc:date>2015-09-09T11:16:39Z</dc:date>
    <item>
      <title>Julian Date conversion in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002316#M649347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have Julian dates in our &lt;STRONG&gt;SQL Server&lt;/STRONG&gt; database.&lt;/P&gt;&lt;P&gt;I can convert them on the database client as well as in the script at the sql part of the script.&lt;/P&gt;&lt;P&gt;But I am doing two part ETL. '&lt;STRONG&gt;Source --&amp;gt; Staging'&lt;/STRONG&gt; and&amp;nbsp; '&lt;STRONG&gt;Staging --&amp;gt; Final qvd'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So, I don't want to perform coversion on the database in the '&lt;STRONG&gt;Source --&amp;gt; Staging'&lt;/STRONG&gt; script.&lt;/P&gt;&lt;P&gt;Once the data is loaded to Staging, can I convert in the '&lt;STRONG&gt;Staging --&amp;gt; Final qvd'&lt;/STRONG&gt; script??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean without hitting the database again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT schedwin.WO.DATECREAT,&amp;nbsp; DATEADD(s, ABS(DATECREAT), '19700101') AS&lt;BR /&gt;Record_Create_Datetime FROM schedwin.WO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;STRONG&gt;DATECREAT&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Record_Create_Datetime&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1432809061&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015-05-28 10:31:01.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1441291351&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015-09-03 14:42:31.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 1441291952&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015-09-03 14:52:32.000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any wahy to do this in QlikView script please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SB&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 10:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002316#M649347</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2015-09-09T10:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Julian Date conversion in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002317#M649349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are not Julian dates. They are UNIX times, i.e. number of seconds since 1970-01-01.&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&amp;nbsp; TimeStamp(MakeDate(1970) + DATECREAT/24/60/60) as MyDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 11:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002317#M649349</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-09T11:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Julian Date conversion in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002318#M649351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working and&amp;nbsp; is really helpful.&lt;/P&gt;&lt;P&gt;Thank you very much for the quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 11:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Julian-Date-conversion-in-the-script/m-p/1002318#M649351</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2015-09-09T11:16:39Z</dc:date>
    </item>
  </channel>
</rss>

