<?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 Date and time Fields into Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580422#M1116099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields. Decision_Dte(dd/mm/yyyy) and Decision_Time(hh:mm:ss). How can I merge these into dd/mm/yyyy hh:mm:ss format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following but it gives me wrong year e.g. 30-09-3036 10:21:15. Year 3036 is wrong it should be 2013&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_DTE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'DD-MM-YYYY hh:mm:ss'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DecisionDateTime &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 08:55:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-13T08:55:26Z</dc:date>
    <item>
      <title>Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580422#M1116099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields. Decision_Dte(dd/mm/yyyy) and Decision_Time(hh:mm:ss). How can I merge these into dd/mm/yyyy hh:mm:ss format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following but it gives me wrong year e.g. 30-09-3036 10:21:15. Year 3036 is wrong it should be 2013&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_DTE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'DD-MM-YYYY hh:mm:ss'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DecisionDateTime &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580422#M1116099</guid>
      <dc:creator />
      <dc:date>2014-02-13T08:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580423#M1116100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems to work just fine. see attached. are you sure that your input fields are date and time;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580423#M1116100</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-13T09:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580424#M1116101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;timestamp(num(floor(num(date(decision_dte)))+num(time(decision_time))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580424#M1116101</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-02-13T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580425#M1116102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i removed # after date and time then it worked. Is it correct?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_DTE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'DD-MM-YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;DECISION_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'hh:mm:ss'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'DD-MM-YYYY hh:mm:ss'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580425#M1116102</guid>
      <dc:creator />
      <dc:date>2014-02-13T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580426#M1116103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I believe so. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580426#M1116103</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-13T09:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580427#M1116104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(date#(Date(Date#(Decision_Dte,'DD/MM/YYYY'),'DD/MM/YYYY') &amp;amp;' ' &amp;amp;&amp;nbsp; Time(decision_time,'hh:mm:ss'),&lt;STRONG&gt;'DD/MM/YYYY hh:mm:ss'),&lt;STRONG&gt;&lt;STRONG&gt;'DD/MM/YYYY hh:mm:ss')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580427#M1116104</guid>
      <dc:creator />
      <dc:date>2014-02-13T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580428#M1116105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="307"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" colspan="4" height="17" width="307"&gt;File name is Data Warehouse Sep 2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="64"&gt;APPL_ID&lt;/TD&gt;&lt;TD class="xl22" width="108"&gt;EVT_DTE&lt;/TD&gt;&lt;TD class="xl22" width="71"&gt;EVT_TIME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="64"&gt;19681349&lt;/TD&gt;&lt;TD class="xl23" width="108"&gt;02/09/2013&lt;/TD&gt;&lt;TD class="xl24" width="71"&gt;15:49:56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" colspan="2" height="34" width="172"&gt;File name is September data&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="34" width="64"&gt;APPL_ID&lt;/TD&gt;&lt;TD class="xl22" width="108"&gt;Input_Date_Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="64"&gt;19681349&lt;/TD&gt;&lt;TD class="xl25" width="108"&gt;04/09/2013 14:24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" colspan="3" height="34" width="243"&gt;File name is Warehouse Data Sep, 2103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="34" width="64"&gt;APPL_ID&lt;/TD&gt;&lt;TD class="xl22" width="108"&gt;DECISION_DTE&lt;/TD&gt;&lt;TD class="xl22" width="71"&gt;DECISION_TIME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="64"&gt;19681349&lt;/TD&gt;&lt;TD class="xl23" width="108"&gt;04/09/2013&lt;/TD&gt;&lt;TD class="xl24" width="71"&gt;14:32:54&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the above data in three files. I want to calculate the following difference of Networking days in Hours : (7.5 working hours in a day Monday to Friday).&lt;/P&gt;&lt;P&gt;1).&amp;nbsp; (Input_Date_TIME) - (Evt_DTE &amp;amp; EVT_TIME)&lt;/P&gt;&lt;P&gt;2).&amp;nbsp; (Decision_date &amp;amp; Decision_Time)&amp;nbsp; -&amp;nbsp; (Input_Date_Time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to calculate by taking data from three files. I have the following code but how should it be based on the above requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartTime = '09:00:00';&lt;/P&gt;&lt;P&gt;Let vQuitTime = '17:00:00';&lt;/P&gt;&lt;P&gt;Let vWorkDay = '$(vQuitTime)'-'$(vStartTime)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; fabs(interval(((Networkdays(Date(Input_Date_Time,'DD/MM/YYYY hh:mm:ss'),Date(Decisiondatetimefinal,'DD/MM/YYYY hh:mm:ss')) -2)*'$(vWorkDay)') &lt;BR /&gt; + &lt;BR /&gt; if(frac(date(Input_Date_Time))&amp;lt;num('$(vQuitTime)'),if(frac(date(Input_Date_Time))&amp;gt;num('$(vStartTime)'),Date#(date(floor(Input_Date_Time),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)' ,'DD/MM/YYYYhh:mm:ss')-Date(Input_Date_Time,'DD/MM/YYYY hh:mm:ss'),Date#(date(floor(Input_Date_Time),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)' ,'DD/MM/YYYYhh:mm:ss')-Date#(date(floor(Input_Date_Time),'DD/MM/YYYY') &amp;amp; '$(vStartTime)' ,'DD/MM/YYYYhh:mm:ss')),0) &lt;BR /&gt; + &lt;BR /&gt; if(frac(date(Decisiondatetimefinal))&amp;gt;num('$(vStartTime)'),if(frac(date(Decisiondatetimefinal))&amp;lt;num('$(vQuitTime)'),(Date(Decisiondatetimefinal,'DD/MM/YYYY hh:mm:ss')-Date#(date(floor(Decisiondatetimefinal),'DD/MM/YYYY') &amp;amp; '$(vStartTime)','DD/MM/YYYYhh:mm:ss')),Date#(date(floor(Decisiondatetimefinal),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)','DD/MM/YYYYhh:mm:ss')-Date#(date(floor(Decisiondatetimefinal),'DD/MM/YYYY') &amp;amp; '$(vStartTime)','DD/MM/YYYYhh:mm:ss')),0), 'hh:mm:ss')) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580428#M1116105</guid>
      <dc:creator />
      <dc:date>2014-02-13T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580429#M1116106</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;"&gt;Try below :-&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;&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;date(floor(timestamp#(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Decision_Dte&lt;/STRONG&gt;, 'DD.MM.YYYY hh:mm')), 'DD/MM/YYYY') &amp;amp;' ' &amp;amp;&amp;nbsp; Time(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #008000;"&gt;DECISION_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;,'hh:mm:ss'),'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580429#M1116106</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-02-13T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date and time Fields into Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580430#M1116107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;you have to firstly know about in which format is your date and time then try this code&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Timestamp#(Date#(Decision_Dte&lt;/SPAN&gt;,'DD/MM/YYYY')&amp;amp;' '&amp;amp; Time#(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #008000;"&gt;DECISION_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;,'hh:mm:ss'),'DD/MM/YYYY hh:mm:ss') as Datetime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 09:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-and-time-Fields-into-Timestamp/m-p/580430#M1116107</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-02-13T09:50:13Z</dc:date>
    </item>
  </channel>
</rss>

