<?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: how to get the last second on a given year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049495#M925732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Timestamp(YearEnd(MakeDate(2015)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace MakeDate(2015) with your Date Field or leave it static based on your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 14:30:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-04T14:30:21Z</dc:date>
    <item>
      <title>how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049493#M925730</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 need to calculate the last second of&amp;nbsp; a given year and represent it as a full date+time dd/mm/yyyy hh:mm:ss&lt;/P&gt;&lt;P&gt;in order to compare this date+time to other given date+time in my model...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i create a full date+time value from a given year... &lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given year: 2005&lt;/P&gt;&lt;P&gt;i neet to change it to 31/12/2005 23:59:59&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049493#M925730</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049494#M925731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120418_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049494#M925731</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2016-04-04T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049495#M925732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Timestamp(YearEnd(MakeDate(2015)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace MakeDate(2015) with your Date Field or leave it static based on your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049495#M925732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-04T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049496#M925734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The YearEnd() function will return the value you need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor505"&gt;&lt;/A&gt;&lt;A name="YearEnd"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;YearEnd(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt; date [, shift = 0 [, first_month_of_year = 1]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns a value corresponding to a timestamp with the last millisecond of the last date of the year containing &lt;SPAN class="Italic"&gt;date&lt;/SPAN&gt;. The default output format will be the DateFormat set in the script. &lt;SPAN class="Italic"&gt;Shift&lt;/SPAN&gt; is an integer, where the value 0 indicates the year which contains &lt;SPAN class="Italic"&gt;date&lt;/SPAN&gt;. Negative values in &lt;SPAN class="Italic"&gt;shift&lt;/SPAN&gt; indicate preceding years and positive values indicate succeeding years. If you want to work with (fiscal) years not starting in January, indicate a value between 2 and 12 in &lt;SPAN class="Italic"&gt;first_month_of_year&lt;/SPAN&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049496#M925734</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-04-04T14:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049497#M925737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take care that YearEnd returns the last millisecond of the year,even when formatted only up to seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just in case you are perfoming a match with a real second based timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Timestamp#(Timestamp(YearEnd(MakeDate(2015))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049497#M925737</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T14:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049498#M925739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;STRONG&gt;Timestamp(MakeDate(2005+1) - 1/86400)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subtracts one second from the next year and therefore gives the last second of this year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 15:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049498#M925739</guid>
      <dc:creator />
      <dc:date>2016-04-04T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049499#M925740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 15:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049499#M925740</guid>
      <dc:creator />
      <dc:date>2016-04-04T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the last second on a given year</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049500#M925741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice idea, Do Kra!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to emphasize that comparing floating point values, like Timestamps from a source and timestamp values created in the Qlik script is error prone (though not sure if the OP is really comparing floating point values):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2011/10/correct-time-arithmetic/" title="http://qlikviewcookbook.com/2011/10/correct-time-arithmetic/"&gt;Correct Time Arithmetic | Qlikview Cookbook&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence it's good practice to use the same kind of number (re-)generation on both sides.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 15:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-last-second-on-a-given-year/m-p/1049500#M925741</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T15:49:42Z</dc:date>
    </item>
  </channel>
</rss>

