<?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: Wrong dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085936#M924697</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;In the REPORTDT what type of data you having.&lt;/P&gt;&lt;P&gt;Can you please share the data.&lt;/P&gt;&lt;P&gt;Other wise replace date# in the place of date .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Apr 2016 05:46:39 GMT</pubDate>
    <dc:creator>maniram23</dc:creator>
    <dc:date>2016-04-10T05:46:39Z</dc:date>
    <item>
      <title>Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085934#M924693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The below logic is used to derive dates in qlikview,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#(Num(Month([REPORTDT]))&amp;amp;'/01/'&amp;amp;(Year([REPORTDT])-1), 'MM/DD/YYYY') as ReportingDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it gives dates as &lt;/P&gt;&lt;P&gt;1/01/4994&lt;/P&gt;&lt;P&gt;3/01/4993......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is not an correct dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&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/Wrong-dates/m-p/1085934#M924693</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085935#M924695</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;Pl check below given blog on formats of the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="2954" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 05:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085935#M924695</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2016-04-10T05:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085936#M924697</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;In the REPORTDT what type of data you having.&lt;/P&gt;&lt;P&gt;Can you please share the data.&lt;/P&gt;&lt;P&gt;Other wise replace date# in the place of date .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 05:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085936#M924697</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2016-04-10T05:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085937#M924698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;REPORTDT is a text, you need the date#&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;function to interpret the date &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date#(REPORTDT, 'format of reportdt') &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and then, to format the date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;date(date#(REPORTDT, 'format of reportdt'), 'format of reporting date')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (this use the date format of the SET DateFormat you can find at the beginning of your script)&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;date(date#(REPORTDT, 'format of reportdt'))&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;your script should be&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;date(date#(REPORTDT, 'format of reportdt'), 'format of reporting date') as ReportingDate&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;....&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;format code are here&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/conventions-number-time-formats.htm?q=format%20code" title="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/conventions-number-time-formats.htm?q=format%20code"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/conventions-number-time-formats.htm?q=format%20code&lt;/A&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;an example in the image &lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121121_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 06:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085937#M924698</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-04-10T06:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085938#M924700</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;Can you share sample of your original Data without transformations.&lt;/P&gt;&lt;P&gt;that will be helpful to look into the Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 06:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085938#M924700</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-04-10T06:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085939#M924701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Massimo's explanation as a starting point, there is an easier way to get the date of the first of the month. In the next example, replace &lt;EM&gt;format of reportdt&lt;/EM&gt; with the actual format of the input dates in field REPORTDT. Because that's probably where the problems with dates 2900 years in the future start:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MonthStart(Date#(REPORTDT, '&lt;EM&gt;format of reportdt&lt;/EM&gt;')) AS ReportingDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will use the default Date Format String (see the SET statements at the top of your script) to store reporting dates. If you want to change the format of values in ReportingDate, add a call to the Date() function to modify the result to your taste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 08:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085939#M924701</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-04-10T08:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong dates</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085940#M924702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I Think this is useful for you..&lt;/P&gt;&lt;P&gt;Check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Num(Month([REPORTDT]))&amp;amp;'/01/'&amp;amp;(Year([REPORTDT])-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 13:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-dates/m-p/1085940#M924702</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2016-04-11T13:12:19Z</dc:date>
    </item>
  </channel>
</rss>

