<?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 Number of Days between two Dates not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41947#M7090</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 have the following in my load statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Timestamp#(Shift_Start_Date &amp;amp; ' ' &amp;amp; Start_Time,'YYYY-MM-DD hh:mm:ss.fff')&amp;nbsp; - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Request_Date_Time,'dd/MM/yyyy hh:mm')&amp;nbsp;&amp;nbsp; as temp_days,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both my source dates aren't the same and are being loaded from a CSV file so Im trying to force them into dates and then subtract 1 from the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2018 16:22:58 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2018-03-16T16:22:58Z</dc:date>
    <item>
      <title>Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41947#M7090</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 have the following in my load statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Timestamp#(Shift_Start_Date &amp;amp; ' ' &amp;amp; Start_Time,'YYYY-MM-DD hh:mm:ss.fff')&amp;nbsp; - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Request_Date_Time,'dd/MM/yyyy hh:mm')&amp;nbsp;&amp;nbsp; as temp_days,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both my source dates aren't the same and are being loaded from a CSV file so Im trying to force them into dates and then subtract 1 from the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41947#M7090</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-03-16T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41948#M7091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of both date fields? Can you provide sample data for 4 to 5 lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41948#M7091</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-03-16T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41949#M7092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your source date format? If you show these dates in list box, are they showing up right aligned?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41949#M7092</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-03-16T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41950#M7093</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;Once both fields are converted, the are shown as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request Date : 2008-09-08 18:12:04&lt;/P&gt;&lt;P&gt;Start Date : 2008-10-01 16:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when displayed side by side in a text box, the Request Date is aligned to the right and the Start Date is aligned to the left.&amp;nbsp; I'm guessing the field formats are different???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41950#M7093</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-03-16T16:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41951#M7094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try&lt;/P&gt;&lt;P&gt;Floor([Request Date]) - Floor([Start Date])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41951#M7094</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2018-03-16T16:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Days between two Dates not working</title>
      <link>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41952#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use any one from below depending on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=TimeStamp#([Start Date],'YYYY-MM-DD hh:mm:ss') - TimeStamp#([Request Date],'YYYY-MM-DD hh:mm:ss')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=Floor(TimeStamp#([Start Date],'YYYY-MM-DD hh:mm:ss')) - Floor(TimeStamp#([Request Date],'YYYY-MM-DD hh:mm:ss'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=Floor(TimeStamp#([Start Date],'YYYY-MM-DD hh:mm:ss')) - Floor(TimeStamp#([Request Date],'YYYY-MM-DD hh:mm:ss')) + 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 17:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-of-Days-between-two-Dates-not-working/m-p/41952#M7095</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2018-03-16T17:20:16Z</dc:date>
    </item>
  </channel>
</rss>

