<?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: Joining dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542467#M745862</link>
    <description>Hey boddy, try this:&lt;BR /&gt;&lt;BR /&gt;Date(Floor(Date#(date, 'D/M/YYYY h:m:ss')), 'DD/MM/YYYY') as time_res;</description>
    <pubDate>Mon, 11 Feb 2019 17:09:22 GMT</pubDate>
    <dc:creator>tincholiver</dc:creator>
    <dc:date>2019-02-11T17:09:22Z</dc:date>
    <item>
      <title>Joining dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542462#M745861</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I need to find out how many orders were place FY 2019. We have a calendar dim, but somehow I can't connect my source table to calendar dim.&lt;/P&gt;&lt;P&gt;I have changed the table date format to match the calendar dim format, but I still can't get FY2019 field to work.&lt;/P&gt;&lt;P&gt;Source Table Date Format :&lt;/P&gt;&lt;P&gt;4/1/2018 12:00:00 AM&lt;/P&gt;&lt;P&gt;Calendar Dim Date Format:&lt;/P&gt;&lt;P&gt;2/2/2012&lt;/P&gt;&lt;P&gt;the below expression I am using to change the date format&lt;/P&gt;&lt;P&gt;date( `time_res`, 'MM/DD/YYYY') as time_res,&lt;/P&gt;&lt;P&gt;Any help would be really appreciated&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542462#M745861</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542467#M745862</link>
      <description>Hey boddy, try this:&lt;BR /&gt;&lt;BR /&gt;Date(Floor(Date#(date, 'D/M/YYYY h:m:ss')), 'DD/MM/YYYY') as time_res;</description>
      <pubDate>Mon, 11 Feb 2019 17:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542467#M745862</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-11T17:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542473#M745863</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;the first thing you need to check is your time stamp and date are in date/time format or string?&lt;/P&gt;&lt;P&gt;if they are in timestamp/date format then&lt;/P&gt;&lt;P&gt;for source table &lt;STRONG&gt;date(floor(timestamp_field))&lt;/STRONG&gt; will do&lt;/P&gt;&lt;P&gt;if they are in string then you need to first change them to timestamp then change it to date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(floor(timestamp#(timestamp_field,'MM/DD/YYYY hh:mm:ss tt')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the above i have assumed your dates are in MM/DD/YYYY format, you may nee to change that if otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 17:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542473#M745863</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-11T17:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Joining dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542547#M745864</link>
      <description>&lt;P&gt;&lt;BR /&gt;yep, as it says tincholiver, you have to use the function floor to make join between dates.&lt;/P&gt;&lt;P&gt;This is because in qv the dates are a number and the date format is a mask, for example:&lt;/P&gt;&lt;P&gt;date (40032.5123, 'dd-mm-yyyy hh: mm: ss')&lt;BR /&gt;= 07-17-2009 12:17:42&lt;/P&gt;&lt;P&gt;The numbers that are after the period (.) Represent the hours, minutes and seconds.&lt;/P&gt;&lt;P&gt;So if you had to relate 2 formats, only with the function date could not, since it is a mask, you would have to extract the decimals.&lt;/P&gt;&lt;P&gt;example: date (floor (40032.5123)) = 07-17-2009&lt;/P&gt;&lt;P&gt;regards!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 20:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-dates/m-p/1542547#M745864</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-02-11T20:16:21Z</dc:date>
    </item>
  </channel>
</rss>

